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

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

Instance Method Summary collapse

Instance Method Details

#check(msg) ⇒ Object



245
246
247
248
# File 'lib/heroku/kensa/client.rb', line 245

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

#error(msg) ⇒ Object



250
251
252
# File 'lib/heroku/kensa/client.rb', line 250

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

#finishObject



267
268
269
270
271
# File 'lib/heroku/kensa/client.rb', line 267

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

#message(msg) ⇒ Object



263
264
265
# File 'lib/heroku/kensa/client.rb', line 263

def message(msg)
  $stdout.print msg
end

#result(status) ⇒ Object



258
259
260
261
# File 'lib/heroku/kensa/client.rb', line 258

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

#test(msg) ⇒ Object



239
240
241
242
243
# File 'lib/heroku/kensa/client.rb', line 239

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

#warning(msg) ⇒ Object



254
255
256
# File 'lib/heroku/kensa/client.rb', line 254

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