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, CantRunCommand, Git, Svn

Class Method Summary collapse

Class Method Details

.new(kind, uri, branch) ⇒ Object

Factory to return appropriate SCM instances (according to repository kind)



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

def self.new(kind, uri, branch)
  class_for(kind).new(uri, branch)
end