Module: TrickBag::Networking
- Defined in:
- lib/trick_bag/networking/ssh_output_reader.rb
Defined Under Namespace
Classes: SshOutputReader
Instance Method Summary collapse
Instance Method Details
#run_reader(r) ⇒ Object
134 135 136 137 138 139 140 |
# File 'lib/trick_bag/networking/ssh_output_reader.rb', line 134 def run_reader(r) puts "Starting reader: #{r}" r.run puts; puts "Stdout:\n" + (r.all_stdout.empty? ? '[Empty]' : r.all_stdout) puts; puts "Stderr:\n" + (r.all_stderr.empty? ? '[Empty]' : r.all_stderr) puts "Done\n#{'-' * 79}\n" end |