Module: CovaLog

Included in:
Cova
Defined in:
lib/covalog.rb

Instance Method Summary collapse

Instance Method Details

#_log_block_errorObject



43
44
45
46
47
48
49
# File 'lib/covalog.rb', line 43

def _log_block_error
  puts
  print "=".black * 8
  print " FAILED ".red
  puts "=".black * 8
  puts
end

#_log_block_start(msg) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/covalog.rb', line 27

def _log_block_start(msg)
  puts
  print "=".black * 3
  print " " + msg.black + " "
  puts "=".black * 3
  puts
end

#_log_block_successObject



35
36
37
38
39
40
41
# File 'lib/covalog.rb', line 35

def _log_block_success
  puts
  print "=".black * 9
  print " SUCCESS ".green
  puts "=".black * 9
  puts
end

#_log_info(msg) ⇒ Object



21
22
23
24
25
# File 'lib/covalog.rb', line 21

def _log_info(msg)
  puts
  puts msg.blue
  puts
end

#_log_line(msg) ⇒ Object



3
4
5
# File 'lib/covalog.rb', line 3

def _log_line(msg)
  print msg.black + "  ...  "
end

#_log_line_errorObject



14
15
16
17
18
19
# File 'lib/covalog.rb', line 14

def _log_line_error
  print "[".black
  print "FAIL".red
  print "]".black
  puts
end

#_log_line_okObject



7
8
9
10
11
12
# File 'lib/covalog.rb', line 7

def _log_line_ok
  print "[ ".black
  print "OK".green
  print " ]".black
  puts
end