class Taeval::Executor
Public Class Methods
new(config, output, reporter)
click to toggle source
# File lib/taeval/executor.rb, line 8 def initialize(config, output, reporter) @config = config @reporter = reporter @output = output @runners = {} end
Public Instance Methods
add(runner)
click to toggle source
# File lib/taeval/executor.rb, line 15 def add(runner) conf = @config[runner.to_s] ['solution', 'report', 'verbose'].each { |key| conf[key] = @config[key] } @runners[runner] = RunnerFactory.create(runner, conf, @output, @reporter) end
run()
click to toggle source
# File lib/taeval/executor.rb, line 21 def run @runners.each_pair { |_, runner| runner.run } end
save()
click to toggle source
# File lib/taeval/executor.rb, line 25 def save @reporter.save end