Sha256: a180a4933ec158342850e08e6d8a6604b1cefbf25ab2682c6e21f80f63a5ad4c

Contents?: true

Size: 536 Bytes

Versions: 74

Compression:

Stored size: 536 Bytes

Contents

module DPL
  class Provider
    module Heroku
      autoload :Anvil, 'dpl/provider/heroku/anvil'
      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

74 entries across 74 versions & 1 rubygems

Version Path
dpl-1.6.7.travis.549.1 lib/dpl/provider/heroku.rb
dpl-1.6.7.travis.546.1 lib/dpl/provider/heroku.rb
dpl-1.6.7.travis.535.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.531.1 lib/dpl/provider/heroku.rb
dpl-1.6.6 lib/dpl/provider/heroku.rb
dpl-1.6.7.travis.527.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.526.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.524.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.521.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.518.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.512.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.509.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.508.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.507.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.500.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.498.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.496.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.492.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.491.1 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.487.1 lib/dpl/provider/heroku.rb