Module: Commandify::Tty
- Included in:
- Install
- Defined in:
- lib/commandify/tty.rb
Instance Method Summary collapse
Instance Method Details
#error(msg) ⇒ Object
13 14 15 |
# File 'lib/commandify/tty.rb', line 13 def error msg STDERR.puts " | " << "\033[1;31m#{msg}\033[m" end |
#log(msg) ⇒ Object
5 6 7 |
# File 'lib/commandify/tty.rb', line 5 def log msg STDOUT.puts " | " << msg end |
#notify(msg) ⇒ Object
9 10 11 |
# File 'lib/commandify/tty.rb', line 9 def notify msg STDOUT.puts " | " << "\033[1;32m#{msg}\033[m" end |