Module: DPL::Provider::Heroku
- Extended by:
- Heroku
- Included in:
- Heroku
- Defined in:
- lib/dpl/provider/heroku.rb,
lib/dpl/provider/heroku/api.rb,
lib/dpl/provider/heroku/git.rb,
lib/dpl/provider/heroku/anvil.rb,
lib/dpl/provider/heroku/generic.rb,
lib/dpl/provider/heroku/git_ssh.rb,
lib/dpl/provider/heroku/git_deploy_key.rb
Defined Under Namespace
Classes: API, Anvil, Generic, Git, GitDeployKey, GitSSH
Instance Method Summary collapse
Instance Method Details
#new(context, options) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/dpl/provider/heroku.rb', line 13 def new(context, ) strategy = [: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, ) end |