Sha256: 1509891f38b22bbbda749bc4fd9432273a8f0da0d18f9b7b3bc966f074a3aa6a

Contents?: true

Size: 770 Bytes

Versions: 324

Compression:

Stored size: 770 Bytes

Contents

module DPL
  class Provider
    module Heroku
      autoload :Anvil,        'dpl/provider/heroku/anvil'
      autoload :API,          'dpl/provider/heroku/api'
      autoload :Generic,      'dpl/provider/heroku/generic'
      autoload :Git,          'dpl/provider/heroku/git'
      autoload :GitSSH,       'dpl/provider/heroku/git_ssh'
      autoload :GitDeployKey, 'dpl/provider/heroku/git_deploy_key'

      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

324 entries across 324 versions & 1 rubygems

Version Path
dpl-1.8.37.travis.2118.5 lib/dpl/provider/heroku.rb
dpl-1.8.36 lib/dpl/provider/heroku.rb
dpl-1.8.37.travis.2106.5 lib/dpl/provider/heroku.rb
dpl-1.8.36.travis.2099.5 lib/dpl/provider/heroku.rb
dpl-1.8.35 lib/dpl/provider/heroku.rb
dpl-1.8.35.travis.2098.5 lib/dpl/provider/heroku.rb
dpl-1.8.35.travis.2090.5 lib/dpl/provider/heroku.rb
dpl-1.8.34.travis.2089.5 lib/dpl/provider/heroku.rb
dpl-1.8.34 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.2049.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.2048.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.2043.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.2031.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.2025.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.1999.5 lib/dpl/provider/heroku.rb
dpl-1.8.33.travis.1976.5 lib/dpl/provider/heroku.rb
dpl-1.8.32 lib/dpl/provider/heroku.rb
dpl-1.8.32.travis.1958.5 lib/dpl/provider/heroku.rb
dpl-1.8.32.travis.1957.5 lib/dpl/provider/heroku.rb
dpl-1.8.32.travis.1956.5 lib/dpl/provider/heroku.rb