Class: Rigger::ExecutionStrategy::SingleExecutionStrategy

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

Instance Method Summary collapse

Methods inherited from BasicExecutionStrategy

#initialize

Constructor Details

This class inherits a constructor from Rigger::ExecutionStrategy::BasicExecutionStrategy

Instance Method Details

#appropriate_strategy_for?(task) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rigger/execution_strategy.rb', line 30

def appropriate_strategy_for?(task)
  task.options[:single]
end

#call(task, servers, config, execution_service) ⇒ Object



26
27
28
# File 'lib/rigger/execution_strategy.rb', line 26

def call(task, servers, config, execution_service)
  super(task, [servers.first], config, execution_service)
end