Sha256: 44c60d013738a4f9f337454bbf52a0a452285c2fa0143ffc6557af8745dc8d69
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module VagrantPlugins module VCenter module Action # This class sets the state to suspended if the VM is suspended. class IsPaused def initialize(app, env) @app = app end def call(env) # Set the result to be true if the machine is suspended. env[:result] = env[:machine].state.id == :suspended # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-vcenter-0.3.3 | lib/vagrant-vcenter/action/is_paused.rb |