class Disloku::Repository

Attributes

location[RW]
root[RW]

Public Class Methods

new(location) click to toggle source
# File lib/disloku/Repository.rb, line 8
def initialize(location)
        @location = location
        @root = getRepositoryRoot()
        @gitDir = File.join(@root, ".git")
        @provider = getProvider()
end

Public Instance Methods

getBranchName() click to toggle source
# File lib/disloku/Repository.rb, line 19
def getBranchName()
        raise NotImplementedError.new()
end
getChangeSets(from = nil, to = nil) click to toggle source
# 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() click to toggle source
# File lib/disloku/Repository.rb, line 23
def getProvider()
        raise NotImplementedError.new()
end
getRepositoryRoot() click to toggle source
# File lib/disloku/Repository.rb, line 15
def getRepositoryRoot()
        raise NotImplementedError.new()
end