Class: Veewee::Provider::Virtualbox::Provider

Inherits:
Core::Provider show all
Defined in:
lib/veewee/provider/virtualbox/provider.rb

Instance Attribute Summary

Attributes inherited from Core::Provider

#env, #name, #options, #type

Instance Method Summary collapse

Methods inherited from Core::Provider

available?, #gem_available?, #gems_available?, #get_box, #initialize, #ui

Methods included from Core::Helper::Shell

#shell_exec

Constructor Details

This class inherits a constructor from Veewee::Provider::Core::Provider

Instance Method Details

#check_requirementsObject

include ::Veewee::Provider::Virtualbox::ProviderCommand


11
12
13
14
15
16
# File 'lib/veewee/provider/virtualbox/provider.rb', line 11

def check_requirements
  command = Box.determine_vboxcmd
  unless self.shell_exec("#{command} -v").status == 0
    raise Veewee::Error,"Could not execute VBoxManage command. Please install Virtualbox or make sure VBoxManage is in the Path"
  end
end