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-0.75.0 lib/awspec/helper/finder/elb.rb
awspec-0.74.1 lib/awspec/helper/finder/elb.rb
awspec-0.74.0 lib/awspec/helper/finder/elb.rb
awspec-0.73.2 lib/awspec/helper/finder/elb.rb
awspec-0.73.1 lib/awspec/helper/finder/elb.rb
awspec-0.73.0 lib/awspec/helper/finder/elb.rb
awspec-0.72.0 lib/awspec/helper/finder/elb.rb
awspec-0.71.0 lib/awspec/helper/finder/elb.rb
awspec-0.70.0 lib/awspec/helper/finder/elb.rb
awspec-0.69.1 lib/awspec/helper/finder/elb.rb
awspec-0.69.0 lib/awspec/helper/finder/elb.rb
awspec-0.68.0 lib/awspec/helper/finder/elb.rb
awspec-0.67.1 lib/awspec/helper/finder/elb.rb
awspec-0.67.0 lib/awspec/helper/finder/elb.rb
awspec-0.66.2 lib/awspec/helper/finder/elb.rb
awspec-0.66.1 lib/awspec/helper/finder/elb.rb
awspec-0.66.0 lib/awspec/helper/finder/elb.rb
awspec-0.65.2 lib/awspec/helper/finder/elb.rb
awspec-0.65.1 lib/awspec/helper/finder/elb.rb
awspec-0.65.0 lib/awspec/helper/finder/elb.rb