Sha256: 6946386f248a47702f715ae2b954150f42935598289e29cdc8f0122fb55f006c

Contents?: true

Size: 594 Bytes

Versions: 16

Compression:

Stored size: 594 Bytes

Contents

require 'eb_deployer/deployment_strategy/inplace_update'
require 'eb_deployer/deployment_strategy/blue_green'
require 'eb_deployer/deployment_strategy/blue_only'

module EbDeployer
  module DeploymentStrategy
    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)
      when 'blue_only', 'blue-only'
        BlueOnly.new(env)
      else
        raise 'strategy_name: ' + strategy_name.to_s + ' not supported'
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eb_deployer-0.6.0.beta5 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.6.0.beta4 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.6.0.beta3 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.6.0.beta2 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.5.2 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.6.0.beta1 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.5.1.beta3 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.5.1.beta2 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.5.1.beta1 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.5.0 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.13 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.12 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.11 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.10 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.9 lib/eb_deployer/deployment_strategy.rb
eb_deployer-0.4.8 lib/eb_deployer/deployment_strategy.rb