Class: Rigger::ExecutionStrategy::BasicExecutionStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/rigger/execution_strategy.rb

Instance Method Summary collapse

Constructor Details

#initialize(executor_factory = TaskExecutor) ⇒ 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