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 |
Instance Method Details
#inspect ⇒ Object
40 41 42 |
# File 'lib/git_dump/repo.rb', line 40 def inspect "#<#{self.class} path=#{path}>" end |
#new_version ⇒ Object
New version builder
31 32 33 |
# File 'lib/git_dump/repo.rb', line 31 def new_version Version::Builder.new(self) end |
#versions ⇒ Object
List of versions
36 37 38 |
# File 'lib/git_dump/repo.rb', line 36 def versions Version.list(self) end |