Sha256: a180a4933ec158342850e08e6d8a6604b1cefbf25ab2682c6e21f80f63a5ad4c
Contents?: true
Size: 536 Bytes
Versions: 74
Compression:
Stored size: 536 Bytes
Contents
module DPL class Provider module Heroku autoload :Anvil, 'dpl/provider/heroku/anvil' autoload :Git, 'dpl/provider/heroku/git' autoload :GitDeployKey, 'dpl/provider/heroku/git_deploy_key' extend self def new(context, options) strategy = options[:strategy] || 'anvil' constant = constants.detect { |c| c.to_s.downcase == strategy } raise Error, 'unknown strategy %p' % strategy unless constant const_get(constant).new(context, options) end end end end
Version data entries
74 entries across 74 versions & 1 rubygems