Methods

SSHKit::Formatter::SimpleText

Public Instance Methods

<<(obj) click to toggle source
Alias for: write
write(obj) click to toggle source
# File lib/sshkit/formatters/simple_text.rb, line 8
def write(obj)
  return if obj.verbosity < SSHKit.config.output_verbosity
  case obj
  when SSHKit::Command    then write_command(obj)
  when SSHKit::LogMessage then write_log_message(obj)
  else
    original_output << "Output formatter doesn't know how to handle #{obj.class}\n"
  end
end
Also aliased as: <<

[Validate]

Generated with the Darkfish Rdoc Generator 2.