Sha256: a3774643dff7ae181721a8775b91b10f5a2020aeec59af8c4b8193e04e92ac0e
Contents?: true
Size: 584 Bytes
Versions: 9
Compression:
Stored size: 584 Bytes
Contents
require 'i18n' module VagrantPlugins module VCenter module Action # This class sets the state to running if the VM is running. 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
9 entries across 9 versions & 1 rubygems