class Object
Public Instance Methods
parse_command_line_args()
click to toggle source
# File lib/recumber.rb, line 9 def parse_command_line_args options_hash = {} option_parser = OptionParser.new do |option| option.banner = "Usage: recumber [OPTIONS] [LOGFILE]" option.separator "" option.separator "Options" option.on("-z","--zeus","Rerun the failing steps under Zeus") do options_hash[:zeus] = true end option.on("-h","--help","help") do puts option_parser end end option_parser.parse! options_hash end
print_no_failures_message()
click to toggle source
# File lib/recumber.rb, line 30 def print_no_failures_message puts "All tests passing. Nothing to re-run" end
print_rerun_message(failed_features)
click to toggle source
# File lib/recumber.rb, line 40 def print_rerun_message(failed_features) failed_features.each do |feature| puts "Recumbering: #{feature}" end end
print_title()
click to toggle source
# File lib/recumber.rb, line 34 def print_title puts "------------------------------------" puts "| Recumber |" puts "------------------------------------" end
read_piped_input()
click to toggle source
# File lib/recumber.rb, line 5 def read_piped_input ARGF.read end