Class: Infrastruct::Runner
- Inherits:
-
Object
- Object
- Infrastruct::Runner
- Defined in:
- lib/infrastruct/runner.rb
Instance Method Summary collapse
- #collect(results) ⇒ Object
-
#initialize(factory) ⇒ Runner
constructor
A new instance of Runner.
- #perform(args) ⇒ Object
Constructor Details
#initialize(factory) ⇒ Runner
Returns a new instance of Runner.
3 4 5 |
# File 'lib/infrastruct/runner.rb', line 3 def initialize(factory) @factory = factory end |
Instance Method Details
#collect(results) ⇒ Object
13 14 15 16 17 |
# File 'lib/infrastruct/runner.rb', line 13 def collect(results) worker = @factory.new worker.collect(results) end |
#perform(args) ⇒ Object
7 8 9 10 11 |
# File 'lib/infrastruct/runner.rb', line 7 def perform(args) worker = @factory.new worker.perform(*args) end |