Class: Tasker::Events::Catalog::CatalogPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/tasker/events/catalog.rb

Overview

Service class to handle catalog printing and formatting Reduces complexity by organizing output logic

Class Method Summary collapse

Class Method Details

This method returns an undefined value.

Print the complete catalog with formatting

Parameters:

  • catalog (Hash)

    The complete catalog to print

  • output (IO) (defaults to: nil)

    Output destination



349
350
351
352
353
354
# File 'lib/tasker/events/catalog.rb', line 349

def print(catalog, output = nil)
  log_line = build_log_function(output)

  print_header(log_line)
  print_categories(catalog, log_line)
end