Class: QueryOwl::Notifiers::Console
- Inherits:
-
Object
- Object
- QueryOwl::Notifiers::Console
- Defined in:
- lib/query_owl/notifiers/console.rb
Constant Summary collapse
- YELLOW =
"\e[33m"- RED =
"\e[31m"- RESET =
"\e[0m"
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
8 9 10 11 12 |
# File 'lib/query_owl/notifiers/console.rb', line 8 def call(event) line = format(event) line = apply_color(event[:type], line) if $stdout.tty? $stdout.puts line end |