Class: Cerberus::SCM::Base
- Inherits:
-
Object
- Object
- Cerberus::SCM::Base
show all
- Defined in:
- lib/cerberus/scm/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(path, config = {}) ⇒ 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
#url ⇒ Object
12
13
14
|
# File 'lib/cerberus/scm/base.rb', line 12
def url
@path
end
|