Sha256: 8bb3dea27d7d00ba69bd663375903539db34e0d89ae74d4ed799809f9599d889
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
module Mist::Repository def repository @repository ||= begin if File.directory? Mist.repository_location.join('.git') Git.open(Mist.repository_location.to_s, :log => Rails.logger) else Git.init(Mist.repository_location.to_s, :log => Rails.logger) end end end def reload_repository! @repository = nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mist-0.6.3 | lib/mist/repository.rb |
mist-0.6.2 | lib/mist/repository.rb |
mist-0.6.1 | lib/mist/repository.rb |
mist-0.6.0 | lib/mist/repository.rb |