Sha256: d90c260b22fda28183ceed4ab72794d1b1a4257479cd70207cc1546efc908545
Contents?: true
Size: 506 Bytes
Versions: 16
Compression:
Stored size: 506 Bytes
Contents
module VagrantPlugins module Parallels module Action class IsSaved 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
16 entries across 16 versions & 1 rubygems