Method: Lab::Drivers::RemoteWorkstationDriver#check_file_exists

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

#check_file_exists(file) ⇒ Object



152
153
154
155
156
157
158
159
160
161
# File 'lib/lab/driver/remote_workstation_driver.rb', line 152

def check_file_exists(file)
  
  if @tools
    file = filter_input(file)
    remote_system_command("vmrun -T ws -gu #{@vm_user} -gp #{@vm_pass} " +
        "fileExistsInGuest \'#{@location}\' \'{file}\' nogui")
  else
    raise "Not Implemented - Install VmWare Tools"
  end
end