awful 0.0.37 → 0.0.38
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 -0
- 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: 6bddbf8cc43381e35767b345e27342b0eef5d7d6
|
4
|
+
data.tar.gz: 89d85092fba21d2ba2ed58391fb75b5701750c01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7250389da22f30bf96cbfe66c1bd0531e6c3bf4aeece59b1bf98d00dd565d72a9afef6c00532956555d35680606fd34ee272b5bf77a48f12b044a250828e52d1
|
7
|
+
data.tar.gz: b86ff5574c2ffa74bd8e976c38fbb94306f6a9a7219eb246faf4c4939fb64e7797a7c68a83e0f47759cda2bae204298dc91a15381eb90f73e6b9d8fb9a62ae51
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -180,8 +180,11 @@ module Awful
|
|
180
180
|
ids = ins.first(num.to_i).map(&:instance_id)
|
181
181
|
if yes? "Really terminate #{num} instances: #{ids.join(',')}?", :yellow
|
182
182
|
ids.each do |id|
|
183
|
+
puts "Terminating instance: #{id}"
|
183
184
|
autoscaling.terminate_instance_in_auto_scaling_group(instance_id: id, should_decrement_desired_capacity: options[:decrement] && true)
|
184
185
|
end
|
186
|
+
else
|
187
|
+
puts 'Nothing terminated'
|
185
188
|
end
|
186
189
|
end
|
187
190
|
end
|
data/lib/awful/version.rb
CHANGED