Class: Bauxite::Loggers::EchoLogger

Inherits:
NullLogger show all
Defined in:
lib/bauxite/loggers/echo.rb

Overview

Echo logger.

This logger outputs the raw action text for every action executed.

Note that this logger does not include execution status information (i.e. action succeeded, failed or was skipped).

Instance Method Summary collapse

Methods inherited from NullLogger

#debug_prompt, #finalize, #initialize, #log, #progress

Constructor Details

This class inherits a constructor from Bauxite::Loggers::NullLogger

Instance Method Details

#log_cmd(action) ⇒ Object

Echoes the raw action text.



32
33
34
35
36
# File 'lib/bauxite/loggers/echo.rb', line 32

def log_cmd(action)
	puts action.text
	$stdout.flush
	yield
end