Sha256: f3341e5bbec5287eff294455578a6dbd92a0376e2821418661438fa71602ff41
Contents?: true
Size: 412 Bytes
Versions: 57
Compression:
Stored size: 412 Bytes
Contents
module VagrantPlugins module MCS module Action # This can be used with "Call" built-in to check if the machine # is created and branch in the middleware. class IsCreated def initialize(app, env) @app = app end def call(env) env[:result] = env[:machine].state.id != :not_created @app.call(env) end end end end end
Version data entries
57 entries across 57 versions & 1 rubygems