aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/logger.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-12-05 16:26:36 -0800
committerelijah <elijah@riseup.net>2013-12-05 16:26:36 -0800
commit3e7c500dda3a1998a892a9ee06dabf5a2fa70f38 (patch)
tree8a810abcf30c90d08403f334c36dbc8b8c59e7a6 /lib/leap_cli/logger.rb
parent4199766b4da7edf170895600ce8eeb8970800769 (diff)
downloadleap_cli-3e7c500dda3a1998a892a9ee06dabf5a2fa70f38.tar.gz
leap_cli-3e7c500dda3a1998a892a9ee06dabf5a2fa70f38.tar.bz2
added no-deploy check and simple `leap test run`.
Diffstat (limited to 'lib/leap_cli/logger.rb')
-rw-r--r--lib/leap_cli/logger.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/leap_cli/logger.rb b/lib/leap_cli/logger.rb
index a496260..91fa22d 100644
--- a/lib/leap_cli/logger.rb
+++ b/lib/leap_cli/logger.rb
@@ -133,7 +133,13 @@ module LeapCli
{ :match => /^Syntax error/, :level => 0, :color => :red, :priority => -1, :exit => 1},
{ :match => /^Cannot reassign variable/, :level => 0, :color => :red, :priority => -1, :exit => 1},
{ :match => /^Could not find template/, :level => 0, :color => :red, :priority => -1, :exit => 1},
- { :match => /^Puppet apply complete.*fail/, :level => 0, :color => :red, :priority => -1, :exit => 1}
+ { :match => /^Puppet apply complete.*fail/, :level => 0, :color => :red, :priority => -1, :exit => 1},
+
+ # TESTS
+ { :match => /^PASS: /, :color => :green, :priority => -20},
+ { :match => /^(FAIL|ERROR): /, :color => :red, :priority => -20},
+ { :match => /^SKIP: /, :color => :yellow, :priority => -20}
+
]
def self.sorted_formatters