module Gusteau

Constants

VERSION

Public Instance Methods

info(str, opts={}) click to toggle source
# File lib/gusteau/log.rb, line 23
def info(str, opts={})
  Inform.info str, opts
end
log_error(msg, opts={}) click to toggle source
# File lib/gusteau/log.rb, line 19
def log_error(msg, opts={})
  Inform.error "%{prompt}#{msg}", opts.merge(:prompt => prompt)
end

Private Instance Methods

indent() click to toggle source
# File lib/gusteau/log.rb, line 33
def indent
  @level = (@level || 0) + 1
end
prompt() click to toggle source
# File lib/gusteau/log.rb, line 41
def prompt
  "[#{timestamp}] GUSTEAU: #{'  ' * (@level || 0)}"
end
timestamp() click to toggle source
# File lib/gusteau/log.rb, line 29
def timestamp
  Time.now.strftime('%Y-%m-%dT%H:%M:%S')
end
unindent() click to toggle source
# File lib/gusteau/log.rb, line 37
def unindent
  @level = (@level || 0) - 1
end