Sha256: a43de21aede621d2e01d31f6c63e48ad6fdc278f3997c185a3e9c8a82b2391b4
Contents?: true
Size: 503 Bytes
Versions: 31
Compression:
Stored size: 503 Bytes
Contents
module VagrantPlugins module Parallels module Action # This middleware checks that the VM is running, and raises an exception # if it is not, notifying the user that the VM must be running. class CheckRunning def initialize(app, env) @app = app end def call(env) if env[:machine].state.id != :running raise Vagrant::Errors::VMNotRunningError end @app.call(env) end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems