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 +4 -4
- data/lib/awful/auto_scaling.rb +14 -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: 9ceac4c8b681f7ea2de4e426d2f78e768a065217
|
4
|
+
data.tar.gz: da45884f218238540d27c290a5a27a508d062665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294f1ea043f6fbb40dfb501da356233019c2a48eba2782a47125d8adcfd230448b12529891398b0243ac4f79b8a3e6ac35288c51fcb743913ce4a02f4ce854a0
|
7
|
+
data.tar.gz: a9a098280a15890f48fd7bad3bb8302394ef48b98299814c66c35147b43f2a21983f0b0b8352fe5034ccd2b4d7ff4fb214655100d1e143b7cbfa235171dd7f29
|
data/lib/awful/auto_scaling.rb
CHANGED
@@ -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