be_quiet!()
click to toggle source
def be_quiet!
@quiet = true
end
confirm(msg, newline = nil)
click to toggle source
def confirm(msg, newline = nil)
tell_me(msg, :green, newline) if !@quiet
end
debug(msg, newline = nil)
click to toggle source
def debug(msg, newline = nil)
tell_me(msg, nil, newline) if debug?
end
debug!()
click to toggle source
def debug!
@debug = true
end
debug?()
click to toggle source
def debug?
!!@debug && !@quiet
end
error(msg, newline = nil)
click to toggle source
def error(msg, newline = nil)
tell_me(msg, :red, newline)
end
info(msg, newline = nil)
click to toggle source
def info(msg, newline = nil)
tell_me(msg, nil, newline) if !@quiet
end
warn(msg, newline = nil)
click to toggle source
def warn(msg, newline = nil)
tell_me(msg, :yellow, newline)
end