class TF::TextOutput

Constants

BLUE
GREEN
RED
RESET
YELLOW

Public Class Methods

argument_matches?(argument) click to toggle source
# File lib/plugins/tf/text_output.rb, line 8
def self.argument_matches? argument
  [:load] if argument == "--text"
end
new() click to toggle source
# File lib/plugins/tf/text_output.rb, line 12
def initialize
end

Public Instance Methods

command_err(err) click to toggle source
# File lib/plugins/tf/text_output.rb, line 41
def command_err err
  $stderr.puts err
end
command_out(out) click to toggle source
# File lib/plugins/tf/text_output.rb, line 37
def command_out out
  puts out
end
end_command(line, status, env) click to toggle source
# File lib/plugins/tf/text_output.rb, line 33
def end_command line, status, env
  #puts ": $?=#{status}"
end
end_processing() click to toggle source
# File lib/plugins/tf/text_output.rb, line 18
def end_processing
end
end_test(test) click to toggle source
# File lib/plugins/tf/text_output.rb, line 25
def end_test test
  #puts "#{BLUE}##### finished test #{test[:name]}.#{RESET}"
end
start_command(line) click to toggle source
# File lib/plugins/tf/text_output.rb, line 29
def start_command line
  puts "#{YELLOW}$ #{line[:cmd]}#{RESET}"
end
start_processing() click to toggle source
# File lib/plugins/tf/text_output.rb, line 15
def start_processing
end
start_test(test, env) click to toggle source
# File lib/plugins/tf/text_output.rb, line 21
def start_test test, env
  puts "#{BLUE}##### starting test #{test[:name]}.#{RESET}"
end
test_processed(test, status, msg) click to toggle source
# File lib/plugins/tf/text_output.rb, line 45
def test_processed test, status, msg
  if status
    puts "#{GREEN}# #{msg}#{RESET}"
  else
    puts "#{RED}# #{msg}#{RESET}"
  end
end