Sha256: 7a73076ee31d80ba1f7592246dffa9880cad3575cfda58bf977876acedfc9723

Contents?: true

Size: 641 Bytes

Versions: 135

Compression:

Stored size: 641 Bytes

Contents

require 'faraday'
require 'rendezvous'
require 'netrc'

module DPL
  class Provider
    module Heroku
      autoload :API,          'dpl/provider/heroku/api'
      autoload :Generic,      'dpl/provider/heroku/generic'
      autoload :Git,          'dpl/provider/heroku/git'

      extend self

      def new(context, options)
        strategy = options[:strategy] || 'api'
        constant = constants.detect { |c| c.to_s.downcase == strategy.downcase.gsub(/\W/, '') }
        raise Error, 'unknown strategy %p' % strategy unless constant and constant != Generic
        const_get(constant).new(context, options)
      end
    end
  end
end

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
dpl-heroku-1.10.6.travis.3090.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.5.travis.3089.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.5.travis.3069.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.5.travis.3062.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3055.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3054.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3053.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3047.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3040.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3032.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3031.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3030.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.3.travis.3021.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.3 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.4.travis.3022.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.3.travis.3020.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.3.travis.3017.6 lib/dpl/provider/heroku.rb
dpl-heroku-1.10.3.travis.3014.6 lib/dpl/provider/heroku.rb