Sha256: f2339077f544927e62e1a327901b1538a644b6765758c3934ed08c9560528e40
Contents?: true
Size: 602 Bytes
Versions: 40
Compression:
Stored size: 602 Bytes
Contents
module Vagrant module Action module VM class CheckAccessible def initialize(app, env) @app = app end def call(env) if env[:vm].state == :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 Errors::VMInaccessible end @app.call(env) end end end end end
Version data entries
40 entries across 40 versions & 6 rubygems