Sha256: e68e16da381a74729e348e601d064774253f5c2e9c63f72e2ae450a098905730
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
require "i18n" module VagrantPlugins module VCloud module Action 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-vcloud-0.1.2 | lib/vagrant-vcloud/action/is_paused.rb |
vagrant-vcloud-0.1.1 | lib/vagrant-vcloud/action/is_paused.rb |
vagrant-vcloud-0.1.0 | lib/vagrant-vcloud/action/is_paused.rb |