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.9.3 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2764.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2763.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2762.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2750.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2749.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2748.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2737.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2725.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.2.travis.2724.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2711.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2710.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2705.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.0 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2689.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2669.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2666.5 lib/dpl/provider/heroku.rb
dpl-heroku-1.9.1.travis.2660.5 lib/dpl/provider/heroku.rb