Sha256: 624e37ccf39c4c879d95dbbf2e22af7e718b6da442cb840ed18119ffdc5ad459

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

module VagrantPlugins
  module Vultr
    module Action
      class CheckState
        def initialize(app, env)
          @app = app
          @machine = env[:machine]
          @logger = Log4r::Logger.new('vagrant::vultr::check_state')
        end

        def call(env)
          env[:machine_state] = @machine.state.id
          @logger.info "Machine state is '#{@machine.state.id}'."

          @app.call(env)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
vagrant-vultr-0.1.3 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr_pro-0.2.3 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr_pro-0.2.2 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr_pro-0.2.1 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr2-0.1.4 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr-0.1.2 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr-0.1.1 lib/vagrant-vultr/action/check_state.rb
vagrant-vultr-0.1.0 lib/vagrant-vultr/action/check_state.rb