Class: Disloku::Repository
- Inherits:
-
Object
- Object
- Disloku::Repository
- Defined in:
- lib/disloku/Repository.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
- #getBranchName ⇒ Object
- #getChangeSets(from = nil, to = nil) ⇒ Object
- #getProvider ⇒ Object
- #getRepositoryRoot ⇒ Object
-
#initialize(location) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(location) ⇒ Repository
Returns a new instance of Repository.
8 9 10 11 12 13 |
# File 'lib/disloku/Repository.rb', line 8 def initialize(location) @location = location @root = getRepositoryRoot() @gitDir = File.join(@root, ".git") @provider = getProvider() end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
6 7 8 |
# File 'lib/disloku/Repository.rb', line 6 def location @location end |
#root ⇒ Object
Returns the value of attribute root.
6 7 8 |
# File 'lib/disloku/Repository.rb', line 6 def root @root end |
Instance Method Details
#getBranchName ⇒ Object
19 20 21 |
# File 'lib/disloku/Repository.rb', line 19 def getBranchName() raise NotImplementedError.new() end |
#getChangeSets(from = nil, to = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/disloku/Repository.rb', line 27 def getChangeSets(from = nil, to = nil) changeSets = @provider.getChangeSets(from, to) Log.instance.scope([:default, :logfile]) do changeSets.each() do |changeSet| Log.instance.info("gathered change set #{changeSet.to_s()}") end end return changeSets end |
#getProvider ⇒ Object
23 24 25 |
# File 'lib/disloku/Repository.rb', line 23 def getProvider() raise NotImplementedError.new() end |
#getRepositoryRoot ⇒ Object
15 16 17 |
# File 'lib/disloku/Repository.rb', line 15 def getRepositoryRoot() raise NotImplementedError.new() end |