Method: RemoteCommandHandler#echo
- Defined in:
- lib/help/remote_command_handler.rb
#echo(data, file) ⇒ Object
278 279 280 281 282 283 284 285 |
# File 'lib/help/remote_command_handler.rb', line 278 def echo(data, file) exec = "echo #{data} > #{file}" @logger.debug "going to execute #{exec}" remote_execute(exec, nil, true) if !file_exists?(file) raise Exception.new("file #{file} could not be created") end end |