Class: Asca::Tools::Log
- Inherits:
-
Object
- Object
- Asca::Tools::Log
- Defined in:
- lib/asca/tools/log.rb
Defined Under Namespace
Classes: Color
Class Method Summary collapse
- .command(message) ⇒ Object
- .error(message) ⇒ Object
- .info(message) ⇒ Object
- .puts(message, io = STDOUT) ⇒ Object
- .warn(message) ⇒ Object
Class Method Details
.command(message) ⇒ Object
45 46 47 |
# File 'lib/asca/tools/log.rb', line 45 def command puts "#{Color.command}RUN: \e[4m#{}#{Color.reset}" end |
.error(message) ⇒ Object
41 42 43 |
# File 'lib/asca/tools/log.rb', line 41 def error puts "#{Color.error}ERROR: #{}#{Color.reset}", STDERR end |
.info(message) ⇒ Object
37 38 39 |
# File 'lib/asca/tools/log.rb', line 37 def info puts "#{Color.info}INFO: #{}#{Color.reset}" end |