Module: Awspec::Helper::Finder::Autoscaling

Included in:
Awspec::Helper::Finder
Defined in:
lib/awspec/helper/finder/autoscaling.rb

Instance Method Summary collapse

Instance Method Details

#find_autoscaling_group(id) ⇒ Object



4
5
6
7
8
9
# File 'lib/awspec/helper/finder/autoscaling.rb', line 4

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