prima-twig 0.28.1 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/twig-feature +22 -3
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96cc22bc663d32954115311942b3c26def0ea255
|
|
4
|
+
data.tar.gz: 6c17ebe65626a51684ef032bee71bc2b2bef3e9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53d85c545fbad2c3d84046315924b690bde3e04f0ca63c08882d47cc99b33636cf0c6a1c1a20daa8e60f7f34aa6b169cbb4a76b97523d0e2df59d33f4ee8f531
|
|
7
|
+
data.tar.gz: ff9fd4a6f67649b90a7431fc5cc8e6aa339dcaf816ab04936f8fc53422efea460a594a2fadbbf515ca60579ce0b204abc2e96fadc6d192859b7c9137b71cceeb
|
data/bin/twig-feature
CHANGED
|
@@ -302,12 +302,15 @@ class Release
|
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
cluster_stack_name = nil
|
|
305
|
+
stacks_to_delete = []
|
|
305
306
|
stack_list.each do |stack|
|
|
306
307
|
if stack.stack_name.match(/#{env_hash}$/)
|
|
307
308
|
if stack.stack_name.match(/ecs-cluster/)
|
|
308
309
|
cluster_stack_name = stack.stack_name
|
|
309
310
|
else
|
|
310
|
-
|
|
311
|
+
break unless stack.stack_name.match(/#{env_hash}$/)
|
|
312
|
+
stacks_to_delete.push(stack.stack_name)
|
|
313
|
+
delete_stack(stack.stack_name)
|
|
311
314
|
end
|
|
312
315
|
end
|
|
313
316
|
end
|
|
@@ -322,8 +325,24 @@ class Release
|
|
|
322
325
|
end
|
|
323
326
|
|
|
324
327
|
# Se non ha finito di cancellare le altre non si puo' cancellare il cluster
|
|
325
|
-
output "Attendo
|
|
326
|
-
|
|
328
|
+
output "Attendo 10 secondi per poter eliminare il cluster ECS"
|
|
329
|
+
|
|
330
|
+
while stacks_to_delete.length > 0
|
|
331
|
+
sleep 10
|
|
332
|
+
stacks_to_delete.each do |stack_name|
|
|
333
|
+
begin
|
|
334
|
+
resp = @cf.describe_stacks({stack_name: stack_name})
|
|
335
|
+
rescue Aws::CloudFormation::Errors::ValidationError => e
|
|
336
|
+
if e.message.include? 'does not exist'
|
|
337
|
+
stacks_to_delete = stacks_to_delete - [stack_name]
|
|
338
|
+
else
|
|
339
|
+
raise e
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
output "Stack ancora attivi :#{stacks_to_delete.length.to_s}. Attendo altri 10 secondi per eliminare il cluster ECS"
|
|
344
|
+
end
|
|
345
|
+
|
|
327
346
|
delete_stack(cluster_stack_name)
|
|
328
347
|
delete_stack(@stack_name_alb) if envs.length < 2
|
|
329
348
|
delete_stack(@stack_name_alb_ws) if envs.length < 2
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prima-twig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.28.
|
|
4
|
+
version: 0.28.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2017-11-
|
|
15
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: twig
|
|
@@ -196,8 +196,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
198
|
rubyforge_project:
|
|
199
|
-
rubygems_version: 2.6.
|
|
199
|
+
rubygems_version: 2.6.14
|
|
200
200
|
signing_key:
|
|
201
201
|
specification_version: 4
|
|
202
202
|
summary: The Prima twig toolbelt
|
|
203
203
|
test_files: []
|
|
204
|
+
has_rdoc:
|