Sha256: 6b6d0658c4a24aad89830a8ddb86eb06e955d0f9bd25828b4fa631cc003e7043
Contents?: true
Size: 412 Bytes
Versions: 85
Compression:
Stored size: 412 Bytes
Contents
module VagrantPlugins module MOS 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
85 entries across 85 versions & 1 rubygems