Module: Capistrano::Deploy::SCM

Module | Capistrano::Deploy::SCM
In: | lib/capistrano/recipes/deploy/scm/accurev.rb lib/capistrano/recipes/deploy/scm/base.rb lib/capistrano/recipes/deploy/scm/bzr.rb lib/capistrano/recipes/deploy/scm/cvs.rb lib/capistrano/recipes/deploy/scm/darcs.rb lib/capistrano/recipes/deploy/scm/git.rb lib/capistrano/recipes/deploy/scm/mercurial.rb lib/capistrano/recipes/deploy/scm/none.rb lib/capistrano/recipes/deploy/scm/perforce.rb lib/capistrano/recipes/deploy/scm/subversion.rb lib/capistrano/recipes/deploy/scm.rb lib/capistrano/recipes/deploy/scm/accurev.rb lib/capistrano/recipes/deploy/scm/base.rb lib/capistrano/recipes/deploy/scm/bzr.rb lib/capistrano/recipes/deploy/scm/cvs.rb lib/capistrano/recipes/deploy/scm/darcs.rb lib/capistrano/recipes/deploy/scm/git.rb lib/capistrano/recipes/deploy/scm/mercurial.rb lib/capistrano/recipes/deploy/scm/none.rb lib/capistrano/recipes/deploy/scm/perforce.rb lib/capistrano/recipes/deploy/scm/subversion.rb lib/capistrano/recipes/deploy/scm.rb

### Methods

new new

### Classes and Modules

Class Capistrano::Deploy::SCM::Accurev
Class Capistrano::Deploy::SCM::Base
Class Capistrano::Deploy::SCM::Bzr
Class Capistrano::Deploy::SCM::Cvs
Class Capistrano::Deploy::SCM::Darcs
Class Capistrano::Deploy::SCM::Git
Class Capistrano::Deploy::SCM::Mercurial
Class Capistrano::Deploy::SCM::None
Class Capistrano::Deploy::SCM::Perforce
Class Capistrano::Deploy::SCM::Subversion

### Public Class methods

new(scm, config={})

[Source]

        # File lib/capistrano/recipes/deploy/scm.rb, line 4
     4:       def self.new(scm, config={})
     5:         scm_file = "capistrano/recipes/deploy/scm/#{scm}"
     6:         require(scm_file)
     7:
     8:         scm_const = scm.to_s.capitalize.gsub(/_(.)/) { $1.upcase }
     9:         if const_defined?(scm_const)
    10:           const_get(scm_const).new(config)
    11:         else
    12:           raise Capistrano::Error, "could not find `#{name}::#{scm_const}' in `#{scm_file}'"
    13:         end
    14:       rescue LoadError
    15:         raise Capistrano::Error, "could not find any SCM named `#{scm}'"
    16:       end

new(scm, config={})

[Source]

        # File lib/capistrano/recipes/deploy/scm.rb, line 4
     4:       def self.new(scm, config={})
     5:         scm_file = "capistrano/recipes/deploy/scm/#{scm}"
     6:         require(scm_file)
     7:
     8:         scm_const = scm.to_s.capitalize.gsub(/_(.)/) { $1.upcase }
     9:         if const_defined?(scm_const)
    10:           const_get(scm_const).new(config)
    11:         else
    12:           raise Capistrano::Error, "could not find `#{name}::#{scm_const}' in `#{scm_file}'"
    13:         end
    14:       rescue LoadError
    15:         raise Capistrano::Error, "could not find any SCM named `#{scm}'"
    16:       end

[Validate]