module GOCD_PRE_PUSH::PrettyPrinter

Public Instance Methods

colorize(text, color_code) click to toggle source
# File lib/gocd_pre_push/pretty_printer.rb, line 3
def colorize(text, color_code)
  "#{color_code}#{text}\e[0m"
end
green(text) click to toggle source
# File lib/gocd_pre_push/pretty_printer.rb, line 8
def green(text); colorize(text, "\e[32m"); end
print_error(msg) click to toggle source
print_info(msg) click to toggle source
print_success(msg) click to toggle source
red(text) click to toggle source
# File lib/gocd_pre_push/pretty_printer.rb, line 7
def red(text); colorize(text, "\e[31m"); end
yellow(text) click to toggle source
# File lib/gocd_pre_push/pretty_printer.rb, line 9
def yellow(text); colorize(text, "\e[1m\e[33m");  end