awful 0.0.19 → 0.0.20

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: e3c48ef8ad16b349fc7e1d0d15a8cf17e4ea7a67
4
- data.tar.gz: 8382b4c4a018639909af71234e1b7efffb2b3b35
3
+ metadata.gz: 9ceac4c8b681f7ea2de4e426d2f78e768a065217
4
+ data.tar.gz: da45884f218238540d27c290a5a27a508d062665
5
5
  SHA512:
6
- metadata.gz: 47ed8385d4cfe2d8d48e7499f27ed2b5874c871ef48ea5a1dadfe1bbfaca6cf6b509fa3c64f8f70f3468d52cf14b273d54cff8f19192612b09011a49fea01f66
7
- data.tar.gz: 3aa7f6b767cdef46965e4681aef007612003de1c74a9f708872b052d874c768c69f7144c8449654199bdff90554255ab213e3caeaa897e4f4b85ce1b67542a0f
6
+ metadata.gz: 294f1ea043f6fbb40dfb501da356233019c2a48eba2782a47125d8adcfd230448b12529891398b0243ac4f79b8a3e6ac35288c51fcb743913ce4a02f4ce854a0
7
+ data.tar.gz: a9a098280a15890f48fd7bad3bb8302394ef48b98299814c66c35147b43f2a21983f0b0b8352fe5034ccd2b4d7ff4fb214655100d1e143b7cbfa235171dd7f29
@@ -231,6 +231,20 @@ module Awful
231
231
  autoscaling.detach_instances(auto_scaling_group_name: name, instance_ids: instance_ids, should_decrement_desired_capacity: options[:decrement])
232
232
  end
233
233
 
234
+ desc 'launch_configuration NAMES', 'get launch configs for given ASGs'
235
+ method_option :long, aliases: '-l', default: false, desc: 'Long listing'
236
+ def launch_configuration(*names)
237
+ autoscaling.describe_auto_scaling_groups(auto_scaling_group_names: names).map(&:auto_scaling_groups).flatten.each_with_object({}) do |asg, h|
238
+ h[asg.auto_scaling_group_name] = asg.launch_configuration_name
239
+ end.tap do |hash|
240
+ if options[:long]
241
+ print_table hash
242
+ else
243
+ puts hash.values
244
+ end
245
+ end
246
+ end
247
+
234
248
  end
235
249
 
236
250
  end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
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.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister