module CMSScanner module Formatter # CLI Formatter class Cli < Base def red(text) colorize(text, 31) end def green(text) colorize(text, 32) end def colorize(text, color_code) "\e[#{color_code}m#{text}\e[0m" end end end end