prima-twig 0.34.1 → 0.34.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/twig-feature +1 -1
- data/lib/prima_aws_client.rb +10 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d29e5e47cfdc63bc1bb336ed8cdbadbf4553e04f
|
4
|
+
data.tar.gz: 36ab8b43ff06844898f43425233eb1a58d9be6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30be37a00870ae231faca584e8e8427f1e8836f9a284b0775b14bf9d3727282eaa6b1f39d0aae19467437f3aef9f8a4ecebed0b23c40c3eb0f47477c1c9b38ce
|
7
|
+
data.tar.gz: 3c69f04f590ac193790ab24d6562b5f54cd83c45d312f3bd31e455e52356722e26cc8ab162a6d2172f3500650ffebed2d48b56afca9b6cdb198ab39c625439c1
|
data/bin/twig-feature
CHANGED
@@ -303,7 +303,7 @@ class Release
|
|
303
303
|
output "Attendo 10 secondi per poter eliminare il cluster ECS"
|
304
304
|
|
305
305
|
while stacks_to_delete.length > 0
|
306
|
-
sleep
|
306
|
+
sleep 13
|
307
307
|
stacks_to_delete.each do |stack_name|
|
308
308
|
stacks_to_delete = stacks_to_delete - [stack_name] unless stack_exists?(stack_name)
|
309
309
|
end
|
data/lib/prima_aws_client.rb
CHANGED
@@ -90,7 +90,7 @@ module PrimaAwsClient
|
|
90
90
|
|
91
91
|
def wait_for_stack_ready(stack_name, failed_statuses = ['CREATE_FAILED', 'ROLLBACK_IN_PROGRESS', 'ROLLBACK_FAILED', 'DELETE_IN_PROGRESS', 'DELETE_FAILED', 'DELETE_COMPLETE', 'UPDATE_ROLLBACK_FAILED', 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS'])
|
92
92
|
ready = false
|
93
|
-
sleep_seconds =
|
93
|
+
sleep_seconds = 13
|
94
94
|
output "Attendo che lo stack #{stack_name} finisca di essere inizializzato...\n".yellow
|
95
95
|
while !ready
|
96
96
|
ready = true if stack_ready?(stack_name, failed_statuses)
|
@@ -126,10 +126,15 @@ module PrimaAwsClient
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def stack_ready?(stack_name, failed_statuses = ['CREATE_FAILED', 'ROLLBACK_IN_PROGRESS', 'ROLLBACK_FAILED', 'DELETE_IN_PROGRESS', 'DELETE_FAILED', 'DELETE_COMPLETE', 'UPDATE_ROLLBACK_FAILED', 'UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS'])
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
129
|
+
begin
|
130
|
+
resp = cf_client.describe_stacks(
|
131
|
+
stack_name: stack_name
|
132
|
+
)
|
133
|
+
stack_status = resp.stacks[0].stack_status
|
134
|
+
rescue Aws::CloudFormation::Errors::Throttling => e
|
135
|
+
print 'Throttling'.red; STDOUT.flush
|
136
|
+
return false
|
137
|
+
end
|
133
138
|
raise "The stack #{stack_name} errored out" if failed_statuses.include? stack_status
|
134
139
|
['CREATE_COMPLETE', 'UPDATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE', 'ROLLBACK_COMPLETE'].include? stack_status
|
135
140
|
end
|