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.6.travis.484.1 lib/dpl/provider/heroku.rb
dpl-1.6.5 lib/dpl/provider/heroku.rb
dpl-1.6.6.travis.478.1 lib/dpl/provider/heroku.rb
dpl-1.6.5.travis.477.1 lib/dpl/provider/heroku.rb
dpl-1.6.5.travis.470.1 lib/dpl/provider/heroku.rb
dpl-1.6.5.travis.468.1 lib/dpl/provider/heroku.rb
dpl-1.6.5.travis.466.1 lib/dpl/provider/heroku.rb
dpl-1.6.5.travis.463.1 lib/dpl/provider/heroku.rb
dpl-1.6.4 lib/dpl/provider/heroku.rb
dpl-1.6.4.travis.462.1 lib/dpl/provider/heroku.rb
dpl-1.6.4.travis.459.1 lib/dpl/provider/heroku.rb
dpl-1.6.3 lib/dpl/provider/heroku.rb
dpl-1.6.3.travis.458.1 lib/dpl/provider/heroku.rb
dpl-1.6.2 lib/dpl/provider/heroku.rb
dpl-1.6.3.travis.456.1 lib/dpl/provider/heroku.rb
dpl-1.6.2.travis.455.1 lib/dpl/provider/heroku.rb
dpl-1.6.1 lib/dpl/provider/heroku.rb
dpl-1.6.1.travis.454.1 lib/dpl/provider/heroku.rb
dpl-1.6.1.travis.453.1 lib/dpl/provider/heroku.rb
dpl-1.6.1.travis.452.1 lib/dpl/provider/heroku.rb