class Object

Public Instance Methods

colorize(text, color_code) click to toggle source
# File lib/tasks/task_helpers.rb, line 1
def colorize(text, color_code)
  "\e[#{color_code}m#{text}\e[0m"
end
error(text) click to toggle source
# File lib/tasks/task_helpers.rb, line 16
def error(text);   puts red('ERROR: ') + text; end
success(text) click to toggle source
# File lib/tasks/task_helpers.rb, line 17
def success(text); puts green('SUCCESS: ') + text; end
warn(text) click to toggle source
# File lib/tasks/task_helpers.rb, line 18
def warn(text);    puts yellow('WARNING: ') + text; end