Class: Heroku::Kensa::Client::Screen

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/heroku/kensa/client.rb

Instance Method Summary collapse

Instance Method Details

#check(msg) ⇒ Object



247
248
249
250
# File 'lib/heroku/kensa/client.rb', line 247

def check(msg)
  $stdout.puts
  $stdout.print "  Check #{msg}"
end

#error(msg) ⇒ Object



252
253
254
# File 'lib/heroku/kensa/client.rb', line 252

def error(msg)
  $stdout.print "\n", red("    #{msg}")
end

#finishObject



265
266
267
268
269
# File 'lib/heroku/kensa/client.rb', line 265

def finish
  $stdout.puts
  $stdout.puts
  $stdout.puts "done."
end

#message(msg) ⇒ Object



261
262
263
# File 'lib/heroku/kensa/client.rb', line 261

def message(msg)
  $stdout.print msg
end

#result(status) ⇒ Object



256
257
258
259
# File 'lib/heroku/kensa/client.rb', line 256

def result(status)
  msg = status ? green("[PASS]") : red(bold("[FAIL]"))
  $stdout.print " #{msg}"
end

#test(msg) ⇒ Object



241
242
243
244
245
# File 'lib/heroku/kensa/client.rb', line 241

def test(msg)
  $stdout.puts
  $stdout.puts
  $stdout.print "Testing #{msg}"
end