Class: Jive::BatchRunner
- Inherits:
-
Object
- Object
- Jive::BatchRunner
- Defined in:
- lib/jive/batch_runner.rb
Instance Attribute Summary collapse
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(runner: Runner.new, stdout: $stdout) ⇒ BatchRunner
constructor
A new instance of BatchRunner.
- #run(tasks) ⇒ Object
Constructor Details
#initialize(runner: Runner.new, stdout: $stdout) ⇒ BatchRunner
Returns a new instance of BatchRunner.
7 8 9 10 |
# File 'lib/jive/batch_runner.rb', line 7 def initialize(runner: Runner.new, stdout: $stdout) @runner = runner @stdout = stdout end |
Instance Attribute Details
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
5 6 7 |
# File 'lib/jive/batch_runner.rb', line 5 def runner @runner end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
5 6 7 |
# File 'lib/jive/batch_runner.rb', line 5 def stdout @stdout end |
Instance Method Details
#run(tasks) ⇒ Object
12 13 14 15 16 |
# File 'lib/jive/batch_runner.rb', line 12 def run(tasks) stream_output_for(runner, tasks) stdout.puts "===================================================" print_result_for(runner) end |