Module: Bob::SCM

Defined in:
lib/bob/scm.rb,
lib/bob/scm/git.rb,
lib/bob/scm/svn.rb,
lib/bob/scm/abstract.rb

Defined Under Namespace

Classes: Abstract, Error, Git, Svn

Class Method Summary collapse

Class Method Details

.new(scm, uri, branch) ⇒ Object

Factory to return appropriate SCM instances



11
12
13
# File 'lib/bob/scm.rb', line 11

def self.new(scm, uri, branch)
  const_get(scm.to_s.capitalize).new(uri, branch)
end