lib/rconf/ruby_extensions.rb in rconf-0.9.18 vs lib/rconf/ruby_extensions.rb in rconf-0.9.19

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2011 RightScale, Inc, All Rights Reserved Worldwide. +# Copyright (C) 2011-2012 RightScale, Inc, All Rights Reserved Worldwide. # # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, # reproduction, modification, or disclosure of this program is # strictly prohibited. Any use of this program by an authorized @@ -44,12 +44,12 @@ def yellow; colorize("\e[33m"); end def blue; colorize("\e[34m"); end def purple; colorize("\e[35m"); end def cyan; colorize("\e[36m"); end def white; colorize("\e[37m"); end - def colorize(color_code) + def colorize(color_code) # Doesn't work with the Windows prompt... - (RightConf::Platform.windows? || !$stdout.isatty) ? to_s : "#{color_code}#{to_s}\e[0m" + (RightConf::Platform.windows? || !$stdout.isatty) ? to_s : "#{color_code}#{to_s}\e[0m" end end