Class: Rigger::ExecutionStrategy::SerialExecutionStrategy

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)


20
21
22
# File 'lib/rigger/execution_strategy.rb', line 20

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

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



14
15
16
17
18
# File 'lib/rigger/execution_strategy.rb', line 14

def call(task, servers, config, execution_service)
  servers.each do |s|
    super(task, [s], config, execution_service)
  end
end