Sha256: a51afb7a0d1897a889ddd9bc9378f4683b144f644bafb4fb2ffd208907a6d6f4

Contents?: true

Size: 585 Bytes

Versions: 50

Compression:

Stored size: 585 Bytes

Contents

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

50 entries across 50 versions & 2 rubygems

Version Path
dpl-1.8.48.travis.2486.5 lib/dpl/provider/heroku.rb
dpl-1.8.47 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2485.5 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2484.5 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2483.5 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2459.3 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2458.3 lib/dpl/provider/heroku.rb
dpl-1.8.46 lib/dpl/provider/heroku.rb
dpl-1.8.47.travis.2456.5 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2455.5 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2454.5 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2451.5 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2449.5 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2444.5 lib/dpl/provider/heroku.rb
dpl-1.8.45 lib/dpl/provider/heroku.rb
dpl-1.8.46.travis.2418.5 lib/dpl/provider/heroku.rb
dpl-1.8.45.travis.2417.5 lib/dpl/provider/heroku.rb
dpl-1.8.44 lib/dpl/provider/heroku.rb
dpl-1.8.45.travis.2398.5 lib/dpl/provider/heroku.rb
dpl-1.8.44.travis.2397.5 lib/dpl/provider/heroku.rb