class TestBoosters::Job
Public Class Methods
new(command, known_files, leftover_files)
click to toggle source
# File lib/test_boosters/job.rb, line 8 def initialize(command, known_files, leftover_files) @command = command @known_files = known_files @leftover_files = leftover_files end
run(command, known_files, leftover_files)
click to toggle source
# File lib/test_boosters/job.rb, line 4 def self.run(command, known_files, leftover_files) new(command, known_files, leftover_files).run end
Public Instance Methods
display_header()
click to toggle source
# File lib/test_boosters/job.rb, line 14 def display_header puts TestBoosters::Shell.display_files("Known files for this job", @known_files) TestBoosters::Shell.display_files("Leftover files for this job", @leftover_files) puts "=" * 80 puts "" end
files()
click to toggle source
# File lib/test_boosters/job.rb, line 23 def files @all_files ||= @known_files + @leftover_files end
run()
click to toggle source
# File lib/test_boosters/job.rb, line 27 def run display_header if files.empty? puts("No files to run in this job!") return 0 end TestBoosters::Shell.execute("#{@command} #{files.join(" ")}") end