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