Class: SSHLine::Mock
Instance Method Summary collapse
-
#initialize ⇒ Mock
constructor
A new instance of Mock.
- #ruby(script) ⇒ Object
- #run(command) ⇒ Object
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
#initialize ⇒ Mock
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 |