Method: Lab::Drivers::WorkstationDriver#check_file_exists

Defined in:
lib/lab/driver/workstation_driver.rb

#check_file_exists(file) ⇒ Object



190
191
192
193
194
195
196
197
198
199
# File 'lib/lab/driver/workstation_driver.rb', line 190

def check_file_exists(file)
  file = filter_input(file)
  if @tools
    vmrunstr = "vmrun -T ws -gu \'#{@vm_user}\' -gp \'#{@vm_pass}\' fileExistsInGuest " +
      "\'#{@location}\' \'#{file}\'"
    system_command(vmrunstr)
  else
    raise "Unsupported"
  end
end