jets 6.0.1 → 6.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f47ac05e6c483fddfa95f18d2899386df9e228893b7ddc425ce9a5e6ef4df0c4
4
- data.tar.gz: d18b78a75e123a66b954f35339e541df75d6e85a4dd16f1ac56ca090d00aeb6d
3
+ metadata.gz: 469bf41ff85a39ad660890d93dcc434ee0926d02d7eca5e50d341491fe484235
4
+ data.tar.gz: 9f565593604d1224675e6096e6aec003783a38fe117eb2f97571112065deb017
5
5
  SHA512:
6
- metadata.gz: 1771244d6fed908320775d6cbeffd08d7b26defe3a57bc0c8a3e1db6e2ee92eaf49c0e277e138d9186215cdfa3b40b34508b0159aaa7d0b350ae40d464987100
7
- data.tar.gz: '099a72152faeaad8bbbacfde6859e320025840a756115d55ee908a838da4d538d6ee5b06d3f498ac07864d4477ac4fcd455056261db5951d28253906d52be225'
6
+ metadata.gz: 3ea55a1776af192ea218bbcecb719a7d88090811ddab98fa3e6d539f7b36534f016c2b2b28ce4eb53e00a4a90f48e7f16d9ba8495b7d56af9c87ac694290bc94
7
+ data.tar.gz: a6047cb5149aba3abf54d15ad62ec64503fbc87b0324aa910103e2a0218dd37e0aeca2435d5ebcef8c42ac712d5870e443fd3eb7e2a80b12b18d706d48e15598
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [6.0.2] - 2024-05-30
7
+ - [#728](https://github.com/rubyonjets/jets/pull/728) jets git:push
8
+ - [#729](https://github.com/rubyonjets/jets/pull/729) dont show queue url by default
9
+
6
10
  ## [6.0.1] - 2024-05-27
7
11
  - [#727](https://github.com/rubyonjets/jets/pull/727) small fixes
8
12
  - associated outputs concept
@@ -102,7 +102,13 @@ module Jets::Cfn
102
102
  def update_stack
103
103
  cfn.update_stack(stack_options)
104
104
  rescue Aws::CloudFormation::Errors::ValidationError => e
105
- log.debug "DEBUG bootstrap/deploy.rb update_stack #{e.message}" # ERROR: No updates are to be performed.
105
+ if e.message.include?("No updates are to be performed")
106
+ log.debug "DEBUG bootstrap sync update_stack #{e.message}" # ERROR: No updates are to be performed.
107
+ else
108
+ # Always show the some other error message
109
+ log.info "ERROR bootstrap sync update_stack #{e.message}" # Some other error
110
+ raise
111
+ end
106
112
  true
107
113
  end
108
114
 
@@ -3,6 +3,8 @@ class Jets::CLI::Ci
3
3
  def run
4
4
  check_build_id!
5
5
  run_with_exception_handling do
6
+ puts "Logs for #{build_id}"
7
+ show_console_log_url(build_id)
6
8
  Tailer.new(@options, build_id).run
7
9
  end
8
10
  end
@@ -19,17 +19,17 @@ class Jets::CLI::Git
19
19
 
20
20
  return unless $?.success?
21
21
 
22
- set_env_vars!
23
- sleep 2 # wait ci to start
24
- Jets::CLI::Ci::Logs.new(options).run
22
+ command = [env_vars, "jets ci:logs"].compact.join(" ")
23
+ Kernel.exec(command)
25
24
  end
26
25
 
27
- def set_env_vars!
28
- env_vars = Jets.project.config.git.push.branch[push_branch] || {}
26
+ def env_vars
27
+ env_vars = Jets.project.config.git.push.branch[push_branch]
28
+ return unless env_vars
29
29
  # IE: branch_name = {JETS_ENV: "xxx", AWS_PROFILE: "xxx"}
30
- env_vars.each do |k, v|
31
- ENV[k.to_s] = v
32
- end
30
+ env_vars.map do |k, v|
31
+ "#{k}=#{v}"
32
+ end.sort.join(" ")
33
33
  end
34
34
 
35
35
  # man git-push
data/lib/jets/cli/url.rb CHANGED
@@ -34,6 +34,7 @@ class Jets::CLI
34
34
  acc.merge!(endpoint[:name] => endpoint[:url])
35
35
  end
36
36
  data.delete_if { |k, v| v.nil? } # remove nil values
37
+ data.delete_if { |k| k.include?("queue_url") } unless @options[:all]
37
38
  data
38
39
  end
39
40
  memoize :data
data/lib/jets/cli.rb CHANGED
@@ -176,6 +176,7 @@ module Jets
176
176
 
177
177
  desc "url", "App url"
178
178
  format_option(default: "space")
179
+ option :all, type: :boolean, desc: "Show all urls including queue urls"
179
180
  def url
180
181
  Url.new(options).run
181
182
  end
@@ -41,6 +41,7 @@ module Jets::Core::Config
41
41
 
42
42
  @base64_encode = true
43
43
 
44
+ # Not yet documented because the config interface may change.
44
45
  @git = ActiveSupport::OrderedOptions.new
45
46
  @git.push = ActiveSupport::OrderedOptions.new
46
47
  @git.push.branch = ActiveSupport::OrderedOptions.new
data/lib/jets/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jets
2
- VERSION = "6.0.1"
2
+ VERSION = "6.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-logs
@@ -990,7 +990,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
990
990
  - !ruby/object:Gem::Version
991
991
  version: '0'
992
992
  requirements: []
993
- rubygems_version: 3.5.10
993
+ rubygems_version: 3.4.19
994
994
  signing_key:
995
995
  specification_version: 4
996
996
  summary: Serverless Deployment Service