Sha256: 605eee0da1a0bb9a172553acc339b8a5e3107ee7113aa76a13953a73df8ec2ce
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
class TaskManager def initialize(output) @output = output @tasks = [] end def add(task) @tasks << task end def run(files) @output.start_run(); @tasks.each do |task| result = task.run(files) if !result.nil? @output.add_result(result) break if [:error, :failure].include? result[:state] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
karl-loris-0.0.6 | lib/task_manager.rb |
karl-loris-0.0.7 | lib/task_manager.rb |
karl-loris-0.0.9 | lib/task_manager.rb |