Class Bee::Console::Listener
In: lib/bee_console.rb
Parent: Object

Listener when running in a console. Prints messages on the console using a given formatter.

Methods

build_finished   build_started   error   gets   new   print   puts   target   task  

Attributes

duration  [R]  Build duration.
end_time  [R]  Build end time.
formatter  [R]  Formatter used by listener.
last_target  [R]  Last target met.
last_task  [R]  Last task met.
start_time  [R]  Build start time.
success  [R]  Build success.
verbose  [R]  Verbosity flag.

Public Class methods

Constructor.

  • formatter: the formatter to use to output on console.
  • verbose: tells if we run in verbose mode.

Public Instance methods

Called when build is finished.

  • build: the build object.

Called when build is started.

  • build: the build object.

Called when an error was raised.

  • exception: raised exception.

Get input string. Return string entered by the user.

Print text on the console.

Puts text on the console.

  • text: text to puts.

Called when a target is met.

Called when a task is met.

[Validate]