lib/pharos/transport/command/result.rb
# Append text to one of the streams
# @param data [String]
# @param stream [Symbol]
Append text to one of the streams
Append text to one of the streams
def append(data, stream = :stdout)
          case stream
          when :cmd
            debug { debug_cmd(data) }
          when :stdin
            stdin << data
            debug { debug_stdin(data) }
          when :stdout
            stdout << data
            output << data
            debug { debug_stdout(data) }
          when :stderr
            stderr << data
            output << data
            debug { debug_stderr(data) }
          end
        end
def append ( data , stream = :stdout ) case stream when :cmd debug { debug_cmd ( data ) } when :stdin stdin << data debug { debug_stdin ( data ) } when :stdout stdout << data output << data debug { debug_stdout ( data ) } when :stderr stderr << data output << data debug { debug_stderr ( data ) } end end
Append text to one of the streams
Append text to one of the streams
data
stream
None