Sha256: 10330da0f2730cf9293c95a42b356b26f1e794bf2818b97a95b08a4b1bcc4164
Contents?: true
Size: 633 Bytes
Versions: 18
Compression:
Stored size: 633 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 Vagrant::Errors::VMInaccessible end @app.call(env) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems