Module: Hardhat::Repository

Included in:
Git, Svn
Defined in:
lib/hardhat/repository.rb

Defined Under Namespace

Classes: Git, Svn

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path.



2
3
4
# File 'lib/hardhat/repository.rb', line 2

def path
  @path
end

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/hardhat/repository.rb', line 2

def url
  @url
end

Instance Method Details

#initialize(url, path, options = {}) ⇒ Object



4
5
6
7
# File 'lib/hardhat/repository.rb', line 4

def initialize(url, path, options={})
  @url = url
  @path = File.expand_path(path)
end