Sha256: 0740cf07ff4e7122e39a9a25603bb188cd3c15fa65fbdba42cd7d6f6737ff5ec
Contents?: true
Size: 503 Bytes
Versions: 15
Compression:
Stored size: 503 Bytes
Contents
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
15 entries across 15 versions & 1 rubygems