Class: LogFormatter::Startup
- Defined in:
- lib/zillabyte/cli/log_formatter.rb
Overview
Startup #############################################
Instance Method Summary collapse
- #display(operation_name, operation_index, category, date, line) ⇒ Object
- #handle_hidden(operation_name, operation_index, category, date, line) ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from LogFormatter::Base
Instance Method Details
#display(operation_name, operation_index, category, date, line) ⇒ Object
77 78 79 |
# File 'lib/zillabyte/cli/log_formatter.rb', line 77 def display(operation_name, operation_index, category, date, line) puts "#{get_name(operation_name, operation_index).rjust(15).colorize(color_for(operation_name))} : #{line}" end |
#handle_hidden(operation_name, operation_index, category, date, line) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/zillabyte/cli/log_formatter.rb', line 81 def handle_hidden(operation_name, operation_index, category, date, line) case line when 'REGISTER_FLOW_DEPLOYED', 'REGISTER_FLOW_TIMEOUT', 'STARTUP_ABORT' # done reading the logs exit(0) end end |