Sha256: 5e290ac2268e9d41026440457f98b85ed45990950ce96154c243aca29634f65d
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
module VagrantPlugins module VCloudAir module Action class IsRunning def initialize(app, env) @app = app end def call(env) # Set the result to be true if the machine is running. env[:result] = env[:machine].state.id == :running # Call the next if we have one (but we shouldn't, since this # middleware is built to run with the Call-type middlewares) @app.call(env) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems