diff options
author | elijah <elijah@riseup.net> | 2013-03-14 02:05:58 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-03-14 02:05:58 -0700 |
commit | a76749a837a2552b72be34d91330f8983f740860 (patch) | |
tree | ae392ced56be7dc35b22cbe37713b32deabdf169 /lib/leap_cli/logger.rb | |
parent | 2fd87063c0f48b67cb53bba6d52d82a091be6a7b (diff) | |
download | leap_cli-a76749a837a2552b72be34d91330f8983f740860.tar.gz leap_cli-a76749a837a2552b72be34d91330f8983f740860.tar.bz2 |
added exit codes for puppet apply
Diffstat (limited to 'lib/leap_cli/logger.rb')
-rw-r--r-- | lib/leap_cli/logger.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/leap_cli/logger.rb b/lib/leap_cli/logger.rb index 58aa3c0..e700ee6 100644 --- a/lib/leap_cli/logger.rb +++ b/lib/leap_cli/logger.rb @@ -121,6 +121,8 @@ module LeapCli { :match => /^warning:/, :level => 0, :color => :yellow, :priority => -20}, { :match => /^Duplicate declaration:/, :level => 0, :color => :red, :priority => -20}, { :match => /Finished catalog run/, :level => 0, :color => :green, :priority => -10}, + { :match => /^Puppet apply complete \(changes made\)/, :level => 0, :color => :green, :priority => -10}, + { :match => /^Puppet apply complete \(no changes\)/, :level => 0, :color => :green, :priority => -10}, # PUPPET FATAL ERRORS { :match => /^err:/, :level => 0, :color => :red, :priority => -1, :exit => 1}, @@ -128,7 +130,8 @@ module LeapCli { :match => /^Parameter matches failed:/, :level => 0, :color => :red, :priority => -1, :exit => 1}, { :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 => /^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} ] def self.sorted_formatters |