Class: SSHLine::Mock

Inherits:
SSHLine show all
Defined in:
lib/scout/offsite/ssh.rb

Instance Method Summary collapse

Methods inherited from SSHLine

command, locate, mkdir, open, reach?, rsync, ruby, run, run_local, #scout, scout, #send_cmd, #serve_output, sync, workflow, #workflow

Constructor Details

#initializeMock

Returns a new instance of Mock.



111
112
# File 'lib/scout/offsite/ssh.rb', line 111

def initialize
end

Instance Method Details

#ruby(script) ⇒ Object



118
119
120
121
# File 'lib/scout/offsite/ssh.rb', line 118

def ruby(script)
  cmd = "ruby -e \"#{script.gsub('"','\\"')}\"\n"
  CMD.cmd(cmd)
end

#run(command) ⇒ Object



114
115
116
# File 'lib/scout/offsite/ssh.rb', line 114

def run(command)
  CMD.cmd(command)
end