Sha256: 964d9a9c77c67daf9ef907237754a30da3ee3759d00d85c88a240f35c2457b40
Contents?: true
Size: 487 Bytes
Versions: 15
Compression:
Stored size: 487 Bytes
Contents
module VagrantPlugins module Skytap module Action # This can be used with "Call" built-in to check if the machine # is running and branch in the middleware. class IsRunning def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::is_running") end def call(env) env[:result] = env[:machine].state.id == :running @app.call(env) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems