Class: Cerberus::SCM::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cerberus/scm/base.rb

Direct Known Subclasses

Bazaar, CVS, Darcs, Git, Mercurial, Perforce, SVN

Instance Method Summary collapse

Constructor Details

#initialize(path, config = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
# File 'lib/cerberus/scm/base.rb', line 5

def initialize(path, config = {})
  raise "Path can't be nil" unless path

  @path, @config = path.strip, config
  @encoded_path = (@path.include?(' ') ? "\"#{@path}\"" : @path)
end

Instance Method Details

#urlObject



12
13
14
# File 'lib/cerberus/scm/base.rb', line 12

def url
  @path
end