Class: Seedie::Reporters::ConsoleReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Seedie::Reporters::ConsoleReporter
- Defined in:
- lib/seedie/reporters/console_reporter.rb
Constant Summary
Constants inherited from BaseReporter
Instance Attribute Summary
Attributes inherited from BaseReporter
Instance Method Summary collapse
-
#initialize ⇒ ConsoleReporter
constructor
A new instance of ConsoleReporter.
- #update(event_type, options) ⇒ Object
Methods inherited from BaseReporter
Constructor Details
#initialize ⇒ ConsoleReporter
Returns a new instance of ConsoleReporter.
6 7 8 |
# File 'lib/seedie/reporters/console_reporter.rb', line 6 def initialize super($stdout) end |
Instance Method Details
#update(event_type, options) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/seedie/reporters/console_reporter.rb', line 10 def update(event_type, ) update_indent_level(event_type) = (event_type, ) @reports << { event_type: event_type, message: } output.print "#{' ' * INDENT_SIZE * @indent_level}" output.puts end |