Module: SSHKit::Utils::CaptureOutputMethods

Defined in:
lib/sshkit/utils/capture_output_methods.rb

Instance Method Summary collapse

Instance Method Details

#<<(object) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/sshkit/utils/capture_output_methods.rb', line 4

def <<(object)
  if object.is_a?(SSHKit::Command) || object.is_a?(SSHKit::LogMessage)
    super("#{object}\n")
  else
    super
  end
end