Class: Kamal::Output::Formatter
- Inherits:
-
SSHKit::Formatter::Pretty
- Object
- SSHKit::Formatter::Pretty
- Kamal::Output::Formatter
- Defined in:
- lib/kamal/output/formatter.rb
Instance Method Summary collapse
-
#initialize(output, logger) ⇒ Formatter
constructor
A new instance of Formatter.
- #log_command_data(command, stream_type, stream_data) ⇒ Object
- #log_command_exit(command) ⇒ Object
- #log_command_start(command) ⇒ Object
Constructor Details
#initialize(output, logger) ⇒ Formatter
Returns a new instance of Formatter.
2 3 4 5 |
# File 'lib/kamal/output/formatter.rb', line 2 def initialize(output, logger) @logger = logger super(output) end |
Instance Method Details
#log_command_data(command, stream_type, stream_data) ⇒ Object
11 12 13 |
# File 'lib/kamal/output/formatter.rb', line 11 def log_command_data(command, stream_type, stream_data) with_command_context(command, iostream: stream_type.to_s) { super } end |
#log_command_exit(command) ⇒ Object
15 16 17 |
# File 'lib/kamal/output/formatter.rb', line 15 def log_command_exit(command) with_command_context(command) { super } end |
#log_command_start(command) ⇒ Object
7 8 9 |
# File 'lib/kamal/output/formatter.rb', line 7 def log_command_start(command) with_command_context(command) { super } end |