capistrano-asg-rolling 0.4.0 → 0.4.1

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: 517d95aa2350605f6a9fb472c3c5b293916946747936f2850219f65f6eb4b439
4
- data.tar.gz: 159c94f7e0c371d0e7d1877fbc73ad40e923fc6e8c24e22ab586b7c603c98999
3
+ metadata.gz: ce36d7696e5bd67cc0e95fd64b2574d418c2be0a0caffedaddbee59e8c96c35c
4
+ data.tar.gz: 0dc0a8d18b33898636ab30354cb3ee6bd546d48681c483bdef08a4b617cb8485
5
5
  SHA512:
6
- metadata.gz: 628c4200fb0e4e81370829d700bc0206a81390ad4392d97459c20f8c358a72a1882bcacd829cb69dcb816f9c2f5ed39ef5f8c05c35e7abc7231defa41fce98c0
7
- data.tar.gz: 688a2886933cb90fd2781946e09fd54bd8d72fbbe450256fdd8c16302465007652c34194047a9a49e87226a7a0f823aeba6f5ddc9f210102edf1e6622afa495c
6
+ metadata.gz: 0527dbc3770690c2dbd072bd397b4add2a54f150bbf032001f1162e855d51c0dc4026e056129abe8c63b655f1f5e153b7a910c66e8b188d6eb0b5014c21c5c67
7
+ data.tar.gz: 9960e057f8ac092e5cf4d9716dfcda170c62ef53b126aa747a1857897eec88e0caf0adfcc11b7d414ca41119b35eb5634f4c2abdbf21523e53cbe26caf9a0c29
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  strategy:
11
11
  matrix:
12
- ruby-version: ['2.7', '3.0', '3.1', '3.2']
12
+ ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
13
13
 
14
14
  steps:
15
15
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -21,6 +21,9 @@ Metrics/AbcSize:
21
21
  Metrics/BlockLength:
22
22
  Enabled: false
23
23
 
24
+ Metrics/BlockNesting:
25
+ Max: 4
26
+
24
27
  Metrics/ClassLength:
25
28
  Enabled: false
26
29
 
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  # Specify your gem's dependencies in capistrano-asg-rolling.gemspec
8
8
  gemspec
9
9
 
10
- gem 'rubocop', '~> 1.56.3'
10
+ gem 'rubocop', '~> 1.58'
11
11
  gem 'rubocop-performance', '~> 1.19.0'
12
12
  gem 'rubocop-rake', '~> 0.6.0'
13
- gem 'rubocop-rspec', '~> 2.24.0'
13
+ gem 'rubocop-rspec', '~> 2.25.0'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-asg-rolling (0.4.0)
4
+ capistrano-asg-rolling (0.4.1)
5
5
  aws-sdk-autoscaling (~> 1, >= 1.67.0)
6
6
  aws-sdk-ec2 (~> 1)
7
7
  capistrano (~> 3)
@@ -15,23 +15,22 @@ GEM
15
15
  airbrussh (1.5.0)
16
16
  sshkit (>= 1.6.1, != 1.7.0)
17
17
  ast (2.4.2)
18
- aws-eventstream (1.2.0)
19
- aws-partitions (1.830.0)
20
- aws-sdk-autoscaling (1.98.0)
21
- aws-sdk-core (~> 3, >= 3.184.0)
18
+ aws-eventstream (1.3.0)
19
+ aws-partitions (1.863.0)
20
+ aws-sdk-autoscaling (1.102.0)
21
+ aws-sdk-core (~> 3, >= 3.188.0)
22
22
  aws-sigv4 (~> 1.1)
23
- aws-sdk-core (3.184.0)
24
- aws-eventstream (~> 1, >= 1.0.2)
23
+ aws-sdk-core (3.190.0)
24
+ aws-eventstream (~> 1, >= 1.3.0)
25
25
  aws-partitions (~> 1, >= 1.651.0)
26
- aws-sigv4 (~> 1.5)
26
+ aws-sigv4 (~> 1.8)
27
27
  jmespath (~> 1, >= 1.6.1)
28
- aws-sdk-ec2 (1.410.0)
29
- aws-sdk-core (~> 3, >= 3.184.0)
28
+ aws-sdk-ec2 (1.428.0)
29
+ aws-sdk-core (~> 3, >= 3.188.0)
30
30
  aws-sigv4 (~> 1.1)
31
- aws-sigv4 (1.6.0)
31
+ aws-sigv4 (1.8.0)
32
32
  aws-eventstream (~> 1, >= 1.0.2)
33
- base64 (0.1.1)
34
- capistrano (3.17.3)
33
+ capistrano (3.18.0)
35
34
  airbrussh (>= 1.0.0)
36
35
  i18n
37
36
  rake (>= 10.0.0)
@@ -44,20 +43,20 @@ GEM
44
43
  i18n (1.14.1)
45
44
  concurrent-ruby (~> 1.0)
46
45
  jmespath (1.6.2)
47
- json (2.6.3)
46
+ json (2.7.1)
48
47
  language_server-protocol (3.17.0.3)
49
48
  net-scp (4.0.0)
50
49
  net-ssh (>= 2.6.5, < 8.0.0)
51
50
  net-ssh (7.2.0)
52
51
  parallel (1.23.0)
53
- parser (3.2.2.3)
52
+ parser (3.2.2.4)
54
53
  ast (~> 2.4.1)
55
54
  racc
56
- public_suffix (5.0.3)
57
- racc (1.7.1)
55
+ public_suffix (5.0.4)
56
+ racc (1.7.3)
58
57
  rainbow (3.1.1)
59
- rake (13.0.6)
60
- regexp_parser (2.8.1)
58
+ rake (13.1.0)
59
+ regexp_parser (2.8.3)
61
60
  rexml (3.2.6)
62
61
  rspec (3.12.0)
63
62
  rspec-core (~> 3.12.0)
@@ -72,19 +71,18 @@ GEM
72
71
  diff-lcs (>= 1.2.0, < 2.0)
73
72
  rspec-support (~> 3.12.0)
74
73
  rspec-support (3.12.1)
75
- rubocop (1.56.4)
76
- base64 (~> 0.1.1)
74
+ rubocop (1.58.0)
77
75
  json (~> 2.3)
78
76
  language_server-protocol (>= 3.17.0)
79
77
  parallel (~> 1.10)
80
- parser (>= 3.2.2.3)
78
+ parser (>= 3.2.2.4)
81
79
  rainbow (>= 2.2.2, < 4.0)
82
80
  regexp_parser (>= 1.8, < 3.0)
83
81
  rexml (>= 3.2.5, < 4.0)
84
- rubocop-ast (>= 1.28.1, < 2.0)
82
+ rubocop-ast (>= 1.30.0, < 2.0)
85
83
  ruby-progressbar (~> 1.7)
86
84
  unicode-display_width (>= 2.4.0, < 3.0)
87
- rubocop-ast (1.29.0)
85
+ rubocop-ast (1.30.0)
88
86
  parser (>= 3.2.1.0)
89
87
  rubocop-capybara (2.19.0)
90
88
  rubocop (~> 1.41)
@@ -95,15 +93,15 @@ GEM
95
93
  rubocop-ast (>= 0.4.0)
96
94
  rubocop-rake (0.6.0)
97
95
  rubocop (~> 1.0)
98
- rubocop-rspec (2.24.1)
99
- rubocop (~> 1.33)
96
+ rubocop-rspec (2.25.0)
97
+ rubocop (~> 1.40)
100
98
  rubocop-capybara (~> 2.17)
101
99
  rubocop-factory_bot (~> 2.22)
102
100
  ruby-progressbar (1.13.0)
103
- sshkit (1.21.5)
101
+ sshkit (1.21.6)
104
102
  net-scp (>= 1.1.2)
105
103
  net-ssh (>= 2.8.0)
106
- unicode-display_width (2.4.2)
104
+ unicode-display_width (2.5.0)
107
105
  webmock (3.19.1)
108
106
  addressable (>= 2.8.0)
109
107
  crack (>= 0.3.2)
@@ -117,10 +115,10 @@ DEPENDENCIES
117
115
  capistrano-asg-rolling!
118
116
  rake (~> 13.0)
119
117
  rspec (~> 3.0)
120
- rubocop (~> 1.56.3)
118
+ rubocop (~> 1.58)
121
119
  rubocop-performance (~> 1.19.0)
122
120
  rubocop-rake (~> 0.6.0)
123
- rubocop-rspec (~> 2.24.0)
121
+ rubocop-rspec (~> 2.25.0)
124
122
  webmock (~> 3.11)
125
123
 
126
124
  BUNDLED WITH
@@ -3,7 +3,7 @@
3
3
  module Capistrano
4
4
  module ASG
5
5
  module Rolling
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
  end
8
8
  end
9
9
  end
@@ -175,27 +175,27 @@ namespace :rolling do
175
175
 
176
176
  desc 'Get status of instance refresh'
177
177
  task :instance_refresh_status do
178
- return unless config.wait_for_instance_refresh?
179
-
180
- groups = config.autoscale_groups.to_h { |group| [group.name, group] }
181
-
182
- while groups.any?
183
- groups.each do |name, group|
184
- refresh = group.latest_instance_refresh
185
- if refresh.nil? || refresh.completed?
186
- logger.info "Auto Scaling Group: **#{name}**, completed with status '#{refresh.status}'." if refresh.completed?
187
- groups.delete(name)
188
- elsif !refresh.percentage_complete.nil?
189
- logger.info "Auto Scaling Group: **#{name}**, #{refresh.percentage_complete}% completed, status '#{refresh.status}'."
190
- else
191
- logger.info "Auto Scaling Group: **#{name}**, status '#{refresh.status}'."
178
+ if config.wait_for_instance_refresh?
179
+ groups = config.autoscale_groups.to_h { |group| [group.name, group] }
180
+
181
+ while groups.any?
182
+ groups.each do |name, group|
183
+ refresh = group.latest_instance_refresh
184
+ if refresh.nil? || refresh.completed?
185
+ logger.info "Auto Scaling Group: **#{name}**, completed with status '#{refresh.status}'." if refresh.completed?
186
+ groups.delete(name)
187
+ elsif !refresh.percentage_complete.nil?
188
+ logger.info "Auto Scaling Group: **#{name}**, #{refresh.percentage_complete}% completed, status '#{refresh.status}'."
189
+ else
190
+ logger.info "Auto Scaling Group: **#{name}**, status '#{refresh.status}'."
191
+ end
192
192
  end
193
- end
194
- next if groups.empty?
193
+ next if groups.empty?
195
194
 
196
- wait_for = config.instance_refresh_polling_interval
197
- logger.info "Instance refresh(es) not completed, waiting #{wait_for} seconds..."
198
- sleep wait_for
195
+ wait_for = config.instance_refresh_polling_interval
196
+ logger.info "Instance refresh(es) not completed, waiting #{wait_for} seconds..."
197
+ sleep wait_for
198
+ end
199
199
  end
200
200
  end
201
201
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-asg-rolling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-29 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler