Sha256: 81da76145b6b89615fbb6c3a20eadb062d1e98b2cdf8c35141478d5b614a5a32

Contents?: true

Size: 889 Bytes

Versions: 16

Compression:

Stored size: 889 Bytes

Contents

require 'mccloud/provider/core/lb'
require 'mccloud/provider/aws/lb/associate'
require 'mccloud/provider/aws/lb/sorry'

module Mccloud::Provider
  module Aws

    class Lb < ::Mccloud::Provider::Core::Lb

      #Inherits     :name
      #             :provider
      attr_accessor :members
      attr_accessor :sorry_members

      include Mccloud::Provider::Aws::LbCommand

      def initialize(env)
        members=Array.new
        sorry_members=Array.new
        super(env)
      end

      def raw
        if @raw.nil?
          rawname="#{@name}"
          #rawname="#{@provider.filter}#{@name}"
          ::Fog.credential=@provider.credential
          @raw=::Fog::AWS::ELB.new({:region => provider.region}.merge(provider.options)).load_balancers.get(@name)
          env.logger.info("LB found #{@raw}")
        end
        return @raw
      end

    end

  end
end #Module Mccloud

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mccloud-0.1.1 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.28 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.27 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.26 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.25 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.24 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.23 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.22 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.21 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.20 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.19 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.18 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.17 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.16 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.15 lib/mccloud/provider/aws/lb.rb
mccloud-0.0.14 lib/mccloud/provider/aws/lb.rb