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.5.9.travis.373.1 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.372.1 lib/dpl/provider/heroku.rb
dpl-1.5.8 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.368.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.367.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.365.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.364.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.359.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.356.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.336.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.330.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.328.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.326.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.325.1 lib/dpl/provider/heroku.rb