[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585
James Turnbull
james at lovedthanlost.net
Fri Jan 23 14:20:45 UTC 2009
The following commit has been merged in the master branch:
commit 6a2e71dd5fe16abaa64a92255a1bc8b592d2500f
Author: James Turnbull <james at lovedthanlost.net>
Date: Fri Aug 1 09:04:23 2008 +1000
Fixed #1441 - Updated console colours
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index 22f4f32..8824a8b 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -244,23 +244,31 @@ class Puppet::Util::Log
newdesttype :console do
- PINK = {:console => "[0;31m", :html => "FFA0A0"}
- GREEN = {:console => "[0;32m", :html => "00CD00"}
- YELLOW = {:console => "[0;33m", :html => "FFFF60"}
- SLATE = {:console => "[0;34m", :html => "80A0FF"}
- ORANGE = {:console => "[0;35m", :html => "FFA500"}
- BLUE = {:console => "[0;36m", :html => "40FFFF"}
- RESET = {:console => "[0m", :html => ""}
+ RED = {:console => "[0;31m", :html => "FFA0A0"}
+ GREEN = {:console => "[0;32m", :html => "00CD00"}
+ YELLOW = {:console => "[0;33m", :html => "FFFF60"}
+ BLUE = {:console => "[0;34m", :html => "80A0FF"}
+ PURPLE = {:console => "[0;35m", :html => "FFA500"}
+ CYAN = {:console => "[0;36m", :html => "40FFFF"}
+ WHITE = {:console => "[0;37m", :html => "FFFFFF"}
+ HRED = {:console => "[1;31m", :html => "FFA0A0"}
+ HGREEN = {:console => "[1;32m", :html => "00CD00"}
+ HYELLOW = {:console => "[1;33m", :html => "FFFF60"}
+ HBLUE = {:console => "[1;34m", :html => "80A0FF"}
+ HPURPLE = {:console => "[1;35m", :html => "FFA500"}
+ HCYAN = {:console => "[1;36m", :html => "40FFFF"}
+ HWHITE = {:console => "[1;37m", :html => "FFFFFF"}
+ RESET = {:console => "[0m", :html => ""}
@@colormap = {
- :debug => SLATE,
+ :debug => WHITE,
:info => GREEN,
- :notice => PINK,
- :warning => ORANGE,
- :err => YELLOW,
- :alert => BLUE,
- :emerg => RESET,
- :crit => RESET
+ :notice => CYAN,
+ :warning => YELLOW,
+ :err => HPURPLE,
+ :alert => RED,
+ :emerg => HRED,
+ :crit => HRED
}
def colorize(level, str)
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list