module Chef::Steel::Logger
Public Instance Methods
error(msg = '')
click to toggle source
# File lib/chef/steel/logger.rb, line 28 def error(msg = '') log(msg, :red) end
info(msg = '')
click to toggle source
# File lib/chef/steel/logger.rb, line 16 def info(msg = '') log(msg, :green) end
log(msg = '', color = nil)
click to toggle source
# File lib/chef/steel/logger.rb, line 32 def log(msg = '', color = nil) puts msg.colorize(color) end
notice(msg = '')
click to toggle source
# File lib/chef/steel/logger.rb, line 20 def notice(msg = '') log(msg, :light_magenta) end
prompt(msg = '')
click to toggle source
# File lib/chef/steel/logger.rb, line 12 def prompt(msg = '') print msg end
raw_log(msg = '')
click to toggle source
Print the raw string (including escape sequences, if any).
# File lib/chef/steel/logger.rb, line 8 def raw_log(msg = '') puts msg end
warn(msg = '')
click to toggle source
# File lib/chef/steel/logger.rb, line 24 def warn(msg = '') log(msg, :yellow) end