Sha256: f6d5d8d8e9d2ea0aa08af9dcb3c5073487d3f80397f27c883263e7737015ae68
Contents?: true
Size: 464 Bytes
Versions: 7
Compression:
Stored size: 464 Bytes
Contents
module VagrantPlugins module G5K 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) state_id = env[:machine].state.id env[:result] = state_id == :Running and state_id == :shutdown @app.call(env) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems