Sha256: 369ff10550319dbfb0e2d660ff99ace8db1b5c4bf2bb4d6784b16f0245826e51

Contents?: true

Size: 570 Bytes

Versions: 109

Compression:

Stored size: 570 Bytes

Contents

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

      def select_elb_by_vpc_id(vpc_id)
        res = elb_client.describe_load_balancers
        res.load_balancer_descriptions.select do |lb|
          lb.vpc_id == vpc_id
        end
      end
    end
  end
end

Version data entries

109 entries across 109 versions & 2 rubygems

Version Path
awspec-1.4.0 lib/awspec/helper/finder/elb.rb
awspec-1.3.1 lib/awspec/helper/finder/elb.rb
awspec-1.3.0 lib/awspec/helper/finder/elb.rb
awspec-1.2.0 lib/awspec/helper/finder/elb.rb
awspec-1.1.0 lib/awspec/helper/finder/elb.rb
awspec-1.0.0 lib/awspec/helper/finder/elb.rb
awspec-1.0.0.rc lib/awspec/helper/finder/elb.rb
awspec-0.88.2 lib/awspec/helper/finder/elb.rb
awspec-0.88.1 lib/awspec/helper/finder/elb.rb
awspec-0.88.0 lib/awspec/helper/finder/elb.rb
awspec-0.87.1 lib/awspec/helper/finder/elb.rb
awspec-0.87.0 lib/awspec/helper/finder/elb.rb
awspec-0.86.0 lib/awspec/helper/finder/elb.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/helper/finder/elb.rb
awspec-0.85.3 lib/awspec/helper/finder/elb.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/helper/finder/elb.rb
awspec-0.85.2 lib/awspec/helper/finder/elb.rb
awspec-0.85.1 lib/awspec/helper/finder/elb.rb
awspec-0.85.0 lib/awspec/helper/finder/elb.rb
awspec-0.84.1 lib/awspec/helper/finder/elb.rb