awful 0.0.126 → 0.0.127
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/auto_scaling.rb +3 -3
- data/lib/awful/version.rb +1 -1
- 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: 9c8364b35aadf90541c75aa587ccc009496834dd
|
4
|
+
data.tar.gz: b63549108ca09ddfbf654044a35d2e004446c6e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2d583981434a5e4f75ec1591f7b64ef52af6a9717fb263879056e585dc42d96976d851968213fea0030d49b15b90b6dc52636b13415fd41feef3849108dcdd7
|
7
|
+
data.tar.gz: fcd76c096089ccabd2bbf9791ffba0cd023c2110a3eece41b2eeb06aaf56e4ee4dbb643a786548e0cb1e6ea33cc10cfeae45e0482d0d15d1370ee0115c36f263
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -373,12 +373,12 @@ module Awful
|
|
373
373
|
end
|
374
374
|
end
|
375
375
|
|
376
|
-
desc 'wait
|
376
|
+
desc 'wait INSTANCES', 'wait for instances to enter given lifecycle state'
|
377
377
|
method_option :state, aliases: '-s', type: :string, default: 'InService', desc: 'poll until instances enter given lifecycle state'
|
378
378
|
method_option :period, aliases: '-p', type: :numeric, default: 5, desc: 'period between polls'
|
379
|
-
def wait(
|
379
|
+
def wait(*instance_ids)
|
380
380
|
until instance_lifecycle_state(*instance_ids).all?{ |s| s == options[:state] }
|
381
|
-
puts "waiting for #{instance_ids.count} instances to enter state #{options[:state]}"
|
381
|
+
puts "waiting for #{instance_ids.count} instances to enter state #{options[:state]}" unless options[:quiet]
|
382
382
|
sleep options[:period]
|
383
383
|
end
|
384
384
|
end
|
data/lib/awful/version.rb
CHANGED