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