awful 0.0.24 → 0.0.25
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 +5 -4
- 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: a2ef6c30c732a722505390b9175f55382e0fc196
|
4
|
+
data.tar.gz: 50342bbe511d86c6152602ba26d4db26a48a5049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef9bed4c7509802abd206df78896451f2672446692135846a7c10b10b70340400dfbd9a7d3e368aaaa9f03b189ea18ce8a47f39eb8065e07f40e1e7205450150
|
7
|
+
data.tar.gz: 325ae30892e61be100ed844ad90bfb6ebe7a6bf1e3d2f0e841c6b8ba2b37d797c0b95adfee851541d52199dab0c0a04d594396919607983e3dfc52552154a835
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -267,13 +267,14 @@ module Awful
|
|
267
267
|
elsif options[:detach]
|
268
268
|
autoscaling.detach_instances(auto_scaling_group_name: name, instance_ids: olds.map(&:instance_id), should_decrement_desired_capacity: options[:decrement])
|
269
269
|
elsif options[:deregister]
|
270
|
-
asg.load_balancer_names.
|
270
|
+
asg.load_balancer_names.map do |elb_name|
|
271
271
|
elb.deregister_instances_from_load_balancer(load_balancer_name: elb_name, instances: olds.map { |i| { instance_id: i.instance_id } })
|
272
|
-
end
|
272
|
+
end.tap { puts "Deregistered: #{olds.map(&:instance_id).join(',')}" }
|
273
273
|
elsif options[:terminate]
|
274
|
-
olds.
|
274
|
+
olds.map do |instance|
|
275
275
|
autoscaling.terminate_instance_in_auto_scaling_group(instance_id: instance.instance_id, should_decrement_desired_capacity: options[:decrement] && true)
|
276
|
-
|
276
|
+
instance.instance_id
|
277
|
+
end.tap { |ids| say("Terminated: #{ids.join(',')}", :yellow) }
|
277
278
|
elsif options[:long]
|
278
279
|
print_table olds.map { |i| [ i.instance_id, i.launch_configuration_name ] }
|
279
280
|
else
|
data/lib/awful/version.rb
CHANGED