Class: ConflowSpec::Runner
- Inherits:
-
Object
- Object
- ConflowSpec::Runner
- Defined in:
- lib/conflow_spec/runner.rb
Overview
Runs the flow and collects informations about it
Instance Attribute Summary collapse
-
#flow ⇒ Object
readonly
Returns the value of attribute flow.
-
#performed_jobs ⇒ Object
readonly
Returns the value of attribute performed_jobs.
Instance Method Summary collapse
-
#initialize(flow) ⇒ Runner
constructor
A new instance of Runner.
-
#run ⇒ Object
Performs all jobs in the flow, saving results in #performed_jobs.
Constructor Details
#initialize(flow) ⇒ Runner
Returns a new instance of Runner.
9 10 11 12 13 |
# File 'lib/conflow_spec/runner.rb', line 9 def initialize(flow) @flow = flow @queue = queue @performed_jobs = [] end |
Instance Attribute Details
#flow ⇒ Object (readonly)
Returns the value of attribute flow.
6 7 8 |
# File 'lib/conflow_spec/runner.rb', line 6 def flow @flow end |
#performed_jobs ⇒ Object (readonly)
Returns the value of attribute performed_jobs.
6 7 8 |
# File 'lib/conflow_spec/runner.rb', line 6 def performed_jobs @performed_jobs end |
Instance Method Details
#run ⇒ Object
Performs all jobs in the flow, saving results in #performed_jobs
16 17 18 |
# File 'lib/conflow_spec/runner.rb', line 16 def run finish(queue.pop) until queue.empty? end |