Sha256: fdd4976a952c85d580cf555e114f7be12131bf24f1d06430ef103abaf7a6ec9d

Contents?: true

Size: 467 Bytes

Versions: 98

Compression:

Stored size: 467 Bytes

Contents

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

      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

98 entries across 98 versions & 1 rubygems

Version Path
dpl-1.5.8.travis.312.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.309.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.308.1 lib/dpl/provider/heroku.rb
dpl-1.5.8.travis.303.1 lib/dpl/provider/heroku.rb
dpl-1.5.7 lib/dpl/provider/heroku.rb
dpl-1.5.6 lib/dpl/provider/heroku.rb
dpl-1.5.5.travis.270.1 lib/dpl/provider/heroku.rb
dpl-1.5.4 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.269.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.268.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.264.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.265.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.262.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.261.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.259.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.257.1 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.255.2 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.254.2 lib/dpl/provider/heroku.rb
dpl-1.5.3.travis.252.2 lib/dpl/provider/heroku.rb
dpl-1.5.2.travis.248.2 lib/dpl/provider/heroku.rb