Method: Cerberus::SCM::Base#initialize

Defined in:
lib/cerberus/scm/base.rb

#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