Sha256: aa287c8535f60a7e98b33d0150eb2a15b65e0191580dd66fdf74e7ffd75ffa4b
Contents?: true
Size: 445 Bytes
Versions: 13
Compression:
Stored size: 445 Bytes
Contents
module VagrantPlugins module MOS 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 end def call(env) puts env[:machine].state.id env[:result] = env[:machine].state.id == "ready" @app.call(env) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems