Class: SSHKit::Formatter::Simple
- Inherits:
-
Abstract
- Object
- Abstract
- SSHKit::Formatter::Simple
- Defined in:
- lib/negroku/capistrano/formatters/simple.rb
Instance Method Summary collapse
- #write(obj) ⇒ Object (also: #<<)
Instance Method Details
#write(obj) ⇒ Object Also known as: <<
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/negroku/capistrano/formatters/simple.rb', line 7 def write(obj) original_output << "Deploying..." return if obj.verbosity < SSHKit.config.output_verbosity case obj when SSHKit::Command then write_command(obj) when SSHKit::LogMessage then (obj) else original_output << c.black(c.on_yellow("Output formatter doesn't know how to handle #{obj.class}\n")) end end |