Module: VagrantPlugins::VBoxSnapshot::Command::CheckRunnable
- Includes:
- CommandUp::StartMixins
- Defined in:
- lib/vagrant-vbox-snapshot/commands/check_runnable.rb
Defined Under Namespace
Classes: NoVirtualBoxMachineError
Instance Method Summary collapse
Instance Method Details
#check_runnable_on(vm) ⇒ Object
17 18 19 20 |
# File 'lib/vagrant-vbox-snapshot/commands/check_runnable.rb', line 17 def check_runnable_on(vm) raise NoVirtualBoxMachineError if vm.provider.class != VagrantPlugins::ProviderVirtualBox::Provider raise Vagrant::Errors::VMNotCreatedError if vm.state.id == :not_created end |