Sha256: d0f0b43e65014517a051ece280747db695f1f9b0cd983a78beee354732ec34b2

Contents?: true

Size: 568 Bytes

Versions: 21

Compression:

Stored size: 568 Bytes

Contents

require 'vagrant-aws/util/elb'

module VagrantPlugins
  module AWS
    module Action
      # This registers instance in ELB
      class ElbRegisterInstance
        include ElasticLoadBalancer

        def initialize(app, env)
          @app    = app
          @logger = Log4r::Logger.new("vagrant_aws::action::elb_register_instance")
        end

        def call(env)
          @app.call(env)
          if elb_name = env[:machine].provider_config.elb
            register_instance env, elb_name, env[:machine].id
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
vagrant-aws-mscottford-0.8.2 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mscottford-0.8.1 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mscottford-0.8.0 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-gecko-aws-0.8.0 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.24 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-detiber-0.7.2.pre.4 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-detiber-0.7.2.pre.3 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-detiber-0.7.2.pre.2 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.22 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.16 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-iam-decoder-0.7.2 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.14 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.11 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.10 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.9 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-mkubenka-0.7.2.pre.8 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-0.7.2 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-0.7.1 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-0.7.0 lib/vagrant-aws/action/elb_register_instance.rb
vagrant-aws-0.6.0 lib/vagrant-aws/action/elb_register_instance.rb