Sha256: 8f8c8bd43f7579ff4c5b17522050393a9cc6c370dd40809b57480d170e8281d8

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module Awspec::Helper
  module Finder
    module Elb
      def find_elb(id)
        res = @elb_client.describe_load_balancers({
                                                    load_balancer_names: [id]
                                                  })
        return res[:load_balancer_descriptions][0] if res[:load_balancer_descriptions].count == 1
      rescue
        return nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awspec-0.6.0 lib/awspec/helper/finder/elb.rb