class Heroku::Kensa::Client::Screen

Public Instance Methods

check(msg) click to toggle source
# File lib/heroku/kensa/client.rb, line 230
def check(msg)
  $stdout.puts
  $stdout.print "  Check #{msg}"
end
error(msg) click to toggle source
# File lib/heroku/kensa/client.rb, line 235
def error(msg)
  $stdout.print "\n", "    #{msg}".red
end
finish() click to toggle source
# File lib/heroku/kensa/client.rb, line 252
def finish
  $stdout.puts
  $stdout.puts
  $stdout.puts "done."
end
message(msg) click to toggle source
# File lib/heroku/kensa/client.rb, line 248
def message(msg)
  $stdout.print msg
end
result(status) click to toggle source
# File lib/heroku/kensa/client.rb, line 243
def result(status)
  msg = status ? "[PASS]".green : "[FAIL]".red.bold
  $stdout.print " #{msg}"
end
test(msg) click to toggle source
# File lib/heroku/kensa/client.rb, line 224
def test(msg)
  $stdout.puts
  $stdout.puts
  $stdout.print "Testing #{msg}"
end
warning(msg) click to toggle source
# File lib/heroku/kensa/client.rb, line 239
def warning(msg)
  $stdout.print "\n", "    #{msg}".yellow
end