Module: DtcRake::UI
Class Method Summary collapse
- .announce(msg) ⇒ Object
- .error(msg) ⇒ Object
- .info(msg) ⇒ Object
- .success(msg) ⇒ Object
- .warning(msg) ⇒ Object
Class Method Details
.announce(msg) ⇒ Object
9 10 11 12 |
# File 'lib/dtc_rake/ui.rb', line 9 def announce(msg) msg = Rainbow(msg).aqua if colorize? puts msg end |
.error(msg) ⇒ Object
3 4 5 6 |
# File 'lib/dtc_rake/ui.rb', line 3 def error(msg) msg = Rainbow(msg).red if colorize? abort msg end |
.info(msg) ⇒ Object
27 28 29 30 |
# File 'lib/dtc_rake/ui.rb', line 27 def info(msg) msg = Rainbow(msg).white if colorize? puts msg end |
.success(msg) ⇒ Object
15 16 17 18 |
# File 'lib/dtc_rake/ui.rb', line 15 def success(msg) msg = Rainbow(msg).green if colorize? puts msg end |
.warning(msg) ⇒ Object
21 22 23 24 |
# File 'lib/dtc_rake/ui.rb', line 21 def warning(msg) msg = Rainbow(msg).yellow if colorize? puts msg end |