Sha256: 9f5364534377a58476c2bae38fea60c585dcb0fc77d027a92694c863ee4755bc

Contents?: true

Size: 574 Bytes

Versions: 18

Compression:

Stored size: 574 Bytes

Contents

require 'vagrant-aws/util/elb'

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

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

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

Version data entries

18 entries across 18 versions & 5 rubygems

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