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.52.1 lib/awspec/helper/finder/elb.rb
awspec-0.52.0 lib/awspec/helper/finder/elb.rb
awspec-0.51.0 lib/awspec/helper/finder/elb.rb
awspec-0.50.0 lib/awspec/helper/finder/elb.rb
awspec-0.49.0 lib/awspec/helper/finder/elb.rb
awspec-0.48.0 lib/awspec/helper/finder/elb.rb
awspec-0.47.0 lib/awspec/helper/finder/elb.rb
awspec-0.46.0 lib/awspec/helper/finder/elb.rb
awspec-0.45.0 lib/awspec/helper/finder/elb.rb
awspec-0.44.0 lib/awspec/helper/finder/elb.rb
awspec-0.43.0 lib/awspec/helper/finder/elb.rb
awspec-0.42.0 lib/awspec/helper/finder/elb.rb
awspec-0.41.0 lib/awspec/helper/finder/elb.rb
awspec-0.40.0 lib/awspec/helper/finder/elb.rb
awspec-0.39.0 lib/awspec/helper/finder/elb.rb
awspec-0.38.0 lib/awspec/helper/finder/elb.rb
awspec-0.37.8 lib/awspec/helper/finder/elb.rb
awspec-0.37.7 lib/awspec/helper/finder/elb.rb
awspec-0.37.6 lib/awspec/helper/finder/elb.rb
awspec-0.37.5 lib/awspec/helper/finder/elb.rb