Sha256: 6407c0f2575052181581e965abc7be46d31b2be38562274ccced889ca6c1c60e
Contents?: true
Size: 514 Bytes
Versions: 82
Compression:
Stored size: 514 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Action # This middleware checks that the VM is created, and raises an exception # if it is not, notifying the user that creation is required. class CheckCreated def initialize(app, env) @app = app end def call(env) if env[:machine].state.id == :not_created raise Vagrant::Errors::VMNotCreatedError end @app.call(env) end end end end end
Version data entries
82 entries across 75 versions & 13 rubygems