class Aptible::CLI::TtyLogFormatter
Public Instance Methods
call(severity, _, _, msg)
click to toggle source
# File lib/aptible/cli.rb, line 15 def call(severity, _, _, msg) color = case severity when 'DEBUG' :no_color when 'INFO' :green when 'WARN' :yellow when 'ERROR', 'FATAL' :red else :no_color end "#{public_send(color, msg)}\n" end
no_color(msg)
click to toggle source
# File lib/aptible/cli.rb, line 32 def no_color(msg) msg end