Class: GitDump::Repo
- Inherits:
-
Object
- Object
- GitDump::Repo
- Defined in:
- lib/git_dump/repo.rb,
lib/git_dump/repo/git.rb,
lib/git_dump/repo/rugged.rb
Overview
Main class: create/initialize repository, find versions, provide interface to git
Defined Under Namespace
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, options) ⇒ Repo
constructor
A new instance of Repo.
- #inspect ⇒ Object
-
#new_version ⇒ Object
New version builder.
-
#versions ⇒ Object
List of versions.
Constructor Details
#initialize(path, options) ⇒ Repo
Returns a new instance of Repo.
25 26 27 28 |
# File 'lib/git_dump/repo.rb', line 25 def initialize(path, ) @path = path resolve(path, ) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
23 24 25 |
# File 'lib/git_dump/repo.rb', line 23 def path @path end |