Class: LogFormatter::Startup

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/cli/log_formatter.rb

Overview

Startup #############################################

Instance Method Summary collapse

Methods inherited from Base

#initialize, #print_log_line

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