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



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

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