Sha256: 7befee629e89cfc42dd472908a3a508e9b12bac260cbc71d64b63d9b24fec076

Contents?: true

Size: 652 Bytes

Versions: 11

Compression:

Stored size: 652 Bytes

Contents

require 'vagrant-vbguest/command'
require Vagrant.source_root.join("plugins/commands/up/start_mixins")

module VagrantVbguest

  class Command < Vagrant.plugin("2", :command)
    include CommandCommons
    include VagrantPlugins::CommandUp::StartMixins

    def check_runable_on(vm)
      raise Vagrant::Errors::VMNotCreatedError if vm.state.id == :not_created
      raise Vagrant::Errors::VMInaccessible if vm.state.id == :inaccessible
      raise Vagrant::Errors::VMNotRunningError if vm.state.id != :running
      raise VagrantVbguest::NoVirtualBoxMachineError if vm.provider.class != VagrantPlugins::ProviderVirtualBox::Provider
    end
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
vagrant-vbguest-0.13.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.12.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.11.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.11.0.beta0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.10.1 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-update-0.10.1.dev lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.10.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.10.0.pre1 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.10.0.pre0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.9.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb
vagrant-vbguest-0.8.0 lib/vagrant-vbguest/vagrant_compat/vagrant_1_1/command.rb