Method: VMC::Micro::VMrun#initialize
- Defined in:
- lib/vmc/micro/vmrun.rb
#initialize(config) ⇒ VMrun
Returns a new instance of VMrun.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/vmc/micro/vmrun.rb', line 5 def initialize(config) @platform = config['platform'] @user = 'root' # must use root as we muck around with system settings @password = config['password'] @vmrun = config['vmrun'] @vmx = config['vmx'] # TODO honor TMPDIR if @platform == :windows @temp_dir = ENV['temp'] else @temp_dir = '/tmp' end end |