Sha256: b6b447c0cde226a36219fc818061f3a9bfd8dd0de19728aab1f5884bc39d7cdb
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 stopped and branch in the middleware. class IsStopped def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant_skytap::action::is_stopped") end def call(env) env[:result] = env[:machine].state.id == :stopped @app.call(env) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems