Module: EbDeployer::DeploymentStrategy
- Defined in:
- lib/eb_deployer/deployment_strategy.rb,
lib/eb_deployer/deployment_strategy/blue_green.rb,
lib/eb_deployer/deployment_strategy/inplace_update.rb
Defined Under Namespace
Classes: BlueGreen, InplaceUpdate
Class Method Summary collapse
Class Method Details
.create(env, strategy_name) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/eb_deployer/deployment_strategy.rb', line 6 def self.create(env, strategy_name) case strategy_name.to_s when 'inplace_update', 'inplace-update' InplaceUpdate.new(env) when 'blue_green', 'blue-green' BlueGreen.new(env) else raise 'strategy_name: ' + strategy_name.to_s + ' not supported' end end |