Class: Rigger::ExecutionStrategy::BasicExecutionStrategy
- Inherits:
-
Object
- Object
- Rigger::ExecutionStrategy::BasicExecutionStrategy
- Defined in:
- lib/rigger/execution_strategy.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(task, servers, config, execution_service) ⇒ Object
-
#initialize(executor_factory = TaskExecutor) ⇒ BasicExecutionStrategy
constructor
A new instance of BasicExecutionStrategy.
Constructor Details
#initialize(executor_factory = TaskExecutor) ⇒ BasicExecutionStrategy
Returns a new instance of BasicExecutionStrategy.
4 5 6 |
# File 'lib/rigger/execution_strategy.rb', line 4 def initialize(executor_factory = TaskExecutor) @executor_factory = TaskExecutor end |
Instance Method Details
#call(task, servers, config, execution_service) ⇒ Object
8 9 10 |
# File 'lib/rigger/execution_strategy.rb', line 8 def call(task, servers, config, execution_service) @executor_factory.new(task, servers, execution_service, config).call end |