Sha256: 3dacf383d7e5acc6c35f8344d51356a6083284c9c0f6586e6ee59d523be6de21
Contents?: true
Size: 651 Bytes
Versions: 13
Compression:
Stored size: 651 Bytes
Contents
module VagrantPlugins module Parallels module Action class CheckAccessible def initialize(app, env) @app = app end def call(env) if env[:machine].state.id == :inaccessible # The VM we are attempting to manipulate is inaccessible. This # is a very bad situation and can only be fixed by the user. It # also prohibits us from actually doing anything with the virtual # machine, so we raise an error. raise VagrantPlugins::Parallels::Errors::VMInaccessible end @app.call(env) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems