Sha256: 2496bc4565a0f68014d1f12f2da3205e646d1506b9d02583c61b669e26e3d04d

Contents?: true

Size: 604 Bytes

Versions: 33

Compression:

Stored size: 604 Bytes

Contents

module DPL
  class Provider
    module Heroku
      autoload :Anvil,        'dpl/provider/heroku/anvil'
      autoload :API,          'dpl/provider/heroku/api'
      autoload :Git,          'dpl/provider/heroku/git'
      autoload :GitDeployKey, 'dpl/provider/heroku/git_deploy_key'

      extend self

      def new(context, options)
        strategy = options[:strategy] || 'anvil'
        constant = constants.detect { |c| c.to_s.downcase == strategy }
        raise Error, 'unknown strategy %p' % strategy unless constant
        const_get(constant).new(context, options)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dpl-1.7.4.travis.600.1 lib/dpl/provider/heroku.rb
dpl-1.7.3 lib/dpl/provider/heroku.rb
dpl-1.7.3.travis.597.1 lib/dpl/provider/heroku.rb
dpl-1.7.3.travis.594.1 lib/dpl/provider/heroku.rb
dpl-1.7.2 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.592.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.591.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.590.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.589.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.588.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.586.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.584.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.582.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.581.1 lib/dpl/provider/heroku.rb
dpl-1.7.1 lib/dpl/provider/heroku.rb
dpl-1.7.2.travis.579.1 lib/dpl/provider/heroku.rb
dpl-1.7.1.travis.578.1 lib/dpl/provider/heroku.rb
dpl-1.7.1.travis.577.1 lib/dpl/provider/heroku.rb
dpl-1.7.1.travis.575.1 lib/dpl/provider/heroku.rb
dpl-1.7.1.travis.570.1 lib/dpl/provider/heroku.rb