Sha256: e39060d247c84106754cc8de793091ec80a6ac58f7085b5041ddebc2c38c5491

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
awspec-0.28.1 lib/awspec/helper/finder/autoscaling.rb
awspec-0.28.0 lib/awspec/helper/finder/autoscaling.rb
awspec-0.27.2 lib/awspec/helper/finder/autoscaling.rb
awspec-0.27.1 lib/awspec/helper/finder/autoscaling.rb
awspec-0.27.0 lib/awspec/helper/finder/autoscaling.rb