Module: EbDeployer::DeploymentStrategy

Defined in:
lib/eb_deployer/deployment_strategy.rb,
lib/eb_deployer/deployment_strategy/blue_only.rb,
lib/eb_deployer/deployment_strategy/blue_green.rb,
lib/eb_deployer/deployment_strategy/inplace_update.rb

Defined Under Namespace

Classes: BlueGreen, BlueOnly, InplaceUpdate

Class Method Summary collapse

Class Method Details

.create(component, strategy_name) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/eb_deployer/deployment_strategy.rb', line 7

def self.create(component, strategy_name)
  case strategy_name.to_s
  when 'inplace_update', 'inplace-update'
    InplaceUpdate.new(component)
  when 'blue_green', 'blue-green'
    BlueGreen.new(component)
  when 'blue_only', 'blue-only'
    BlueOnly.new(component)
  else
    raise 'strategy_name: ' + strategy_name.to_s + ' not supported'
  end
end