Sha256: 292ff2ca88100bbc0845016de30650a16873efb749a818c1d85f7075fc40958d
Contents?: true
Size: 797 Bytes
Versions: 5
Compression:
Stored size: 797 Bytes
Contents
module Awspec::Helper module Finder module Autoscaling def find_autoscaling_group(id) res = autoscaling_client.describe_auto_scaling_groups({ auto_scaling_group_names: [id] }) res[:auto_scaling_groups].first if res[:auto_scaling_groups].count == 1 end def find_launch_configuration(id) res = autoscaling_client.describe_launch_configurations({ launch_configuration_names: [id] }) res[:launch_configurations].first if res[:launch_configurations].count == 1 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems