Sha256: e52cdbf5f0cf4ff7a36292ecaa05dff70e1f360ecc62b4439ca8d527c70965b9
Contents?: true
Size: 551 Bytes
Versions: 270
Compression:
Stored size: 551 Bytes
Contents
module Capistrano module Deploy module SCM def self.new(scm, config={}) scm_file = "alpha_omega/deploy/scm/#{scm}" require(scm_file) scm_const = scm.to_s.capitalize.gsub(/_(.)/) { $1.upcase } if const_defined?(scm_const) const_get(scm_const).new(config) else raise Capistrano::Error, "could not find `#{name}::#{scm_const}' in `#{scm_file}'" end rescue LoadError raise Capistrano::Error, "could not find any SCM named `#{scm}'" end end end end
Version data entries
270 entries across 270 versions & 1 rubygems