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 +4 -4
- data/.github/workflows/test.yml +1 -1
- data/.rubocop.yml +3 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +28 -30
- data/lib/capistrano/asg/rolling/version.rb +1 -1
- data/lib/capistrano/asg/tasks/rolling.rake +19 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce36d7696e5bd67cc0e95fd64b2574d418c2be0a0caffedaddbee59e8c96c35c
|
4
|
+
data.tar.gz: 0dc0a8d18b33898636ab30354cb3ee6bd546d48681c483bdef08a4b617cb8485
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0527dbc3770690c2dbd072bd397b4add2a54f150bbf032001f1162e855d51c0dc4026e056129abe8c63b655f1f5e153b7a910c66e8b188d6eb0b5014c21c5c67
|
7
|
+
data.tar.gz: 9960e057f8ac092e5cf4d9716dfcda170c62ef53b126aa747a1857897eec88e0caf0adfcc11b7d414ca41119b35eb5634f4c2abdbf21523e53cbe26caf9a0c29
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
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.
|
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.
|
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.
|
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.
|
19
|
-
aws-partitions (1.
|
20
|
-
aws-sdk-autoscaling (1.
|
21
|
-
aws-sdk-core (~> 3, >= 3.
|
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.
|
24
|
-
aws-eventstream (~> 1, >= 1.0
|
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.
|
26
|
+
aws-sigv4 (~> 1.8)
|
27
27
|
jmespath (~> 1, >= 1.6.1)
|
28
|
-
aws-sdk-ec2 (1.
|
29
|
-
aws-sdk-core (~> 3, >= 3.
|
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.
|
31
|
+
aws-sigv4 (1.8.0)
|
32
32
|
aws-eventstream (~> 1, >= 1.0.2)
|
33
|
-
|
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.
|
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.
|
52
|
+
parser (3.2.2.4)
|
54
53
|
ast (~> 2.4.1)
|
55
54
|
racc
|
56
|
-
public_suffix (5.0.
|
57
|
-
racc (1.7.
|
55
|
+
public_suffix (5.0.4)
|
56
|
+
racc (1.7.3)
|
58
57
|
rainbow (3.1.1)
|
59
|
-
rake (13.0
|
60
|
-
regexp_parser (2.8.
|
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.
|
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.
|
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.
|
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.
|
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.
|
99
|
-
rubocop (~> 1.
|
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.
|
101
|
+
sshkit (1.21.6)
|
104
102
|
net-scp (>= 1.1.2)
|
105
103
|
net-ssh (>= 2.8.0)
|
106
|
-
unicode-display_width (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.
|
118
|
+
rubocop (~> 1.58)
|
121
119
|
rubocop-performance (~> 1.19.0)
|
122
120
|
rubocop-rake (~> 0.6.0)
|
123
|
-
rubocop-rspec (~> 2.
|
121
|
+
rubocop-rspec (~> 2.25.0)
|
124
122
|
webmock (~> 3.11)
|
125
123
|
|
126
124
|
BUNDLED WITH
|
@@ -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
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
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
|
-
|
194
|
-
next if groups.empty?
|
193
|
+
next if groups.empty?
|
195
194
|
|
196
|
-
|
197
|
-
|
198
|
-
|
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.
|
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-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|