awful 0.0.24 → 0.0.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb90b5ea271239b4f8bbc0532995ddeaa53b8af3
4
- data.tar.gz: 6c9ceb6bb28daaafdf4f8cea3f0deea036213f68
3
+ metadata.gz: a2ef6c30c732a722505390b9175f55382e0fc196
4
+ data.tar.gz: 50342bbe511d86c6152602ba26d4db26a48a5049
5
5
  SHA512:
6
- metadata.gz: 097a49d17fdc64eef05335ff417ef9fbb85af0bb51632f0950b543d8d7e3971f337624bb7f218fbcec68ba6a0fbf8837d380630ab26e34d9f81a143fcdedbd27
7
- data.tar.gz: 90dc4672f4b4470b2214804164fd0481f7f07ebe578bb80c9c804974cfa15257ce7a094f321f1e06a2a024877154848a615553d2a123ed77364fd602268a7388
6
+ metadata.gz: ef9bed4c7509802abd206df78896451f2672446692135846a7c10b10b70340400dfbd9a7d3e368aaaa9f03b189ea18ce8a47f39eb8065e07f40e1e7205450150
7
+ data.tar.gz: 325ae30892e61be100ed844ad90bfb6ebe7a6bf1e3d2f0e841c6b8ba2b37d797c0b95adfee851541d52199dab0c0a04d594396919607983e3dfc52552154a835
@@ -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.each do |elb_name|
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.each do |instance|
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
- end
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister