Sha256: dcd0aad848968161783e0d0b8493efc453947cac340e877403e877ff74a66907
Contents?: true
Size: 510 Bytes
Versions: 15
Compression:
Stored size: 510 Bytes
Contents
module VagrantPlugins module Parallels module Action class IsSuspended 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