class SSHKit::Formatter::Abstract
Attributes
options[R]
original_output[R]
Public Class Methods
new(output, options={})
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 14 def initialize(output, options={}) @original_output = output @options = options @color = SSHKit::Color.new(output) end
Public Instance Methods
<<(obj)
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 39 def <<(obj) write(obj) end
log_command_data(command, _stream_type, _stream_data)
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 31 def log_command_data(command, _stream_type, _stream_data) write(command) end
log_command_exit(command)
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 35 def log_command_exit(command) write(command) end
log_command_start(command)
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 27 def log_command_start(command) write(command) end
write(_obj)
click to toggle source
# File lib/sshkit/formatters/abstract.rb, line 43 def write(_obj) raise "Abstract formatter should not be used directly, maybe you want SSHKit::Formatter::BlackHole" end