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.1.travis.451.1 lib/dpl/provider/heroku.rb
dpl-1.6.1.travis.449.1 lib/dpl/provider/heroku.rb
dpl-1.6.1.travis.447.1 lib/dpl/provider/heroku.rb
dpl-1.6.0 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.445.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.437.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.436.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.435.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.432.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.430.1 lib/dpl/provider/heroku.rb
dpl-1.5.11.travis.414.1 lib/dpl/provider/heroku.rb
dpl-1.5.10 lib/dpl/provider/heroku.rb
dpl-1.5.10.travis.413.1 lib/dpl/provider/heroku.rb
dpl-1.5.10.travis.402.1 lib/dpl/provider/heroku.rb
dpl-1.6.0.travis.399.1 lib/dpl/provider/heroku.rb
dpl-1.5.9 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.397.1 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.394.1 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.393.1 lib/dpl/provider/heroku.rb
dpl-1.5.9.travis.390.1 lib/dpl/provider/heroku.rb