| Class | R10K::Git::Cache |
| In: |
lib/r10k/git/cache.rb
|
| Parent: | Object |
Cache Git repository mirrors for object database reuse.
This implements most of the behavior needed for Git repo caching, but needs to have a specific Git bare repository provided. Subclasses should implement the {bare_repository} method.
@abstract @see man git-clone(1)
| exist? | -> | cached? |
| repo | [R] |
@!attribute [r] repo
@api private |
@abstract @return [Object] The concrete bare repository implementation to use for
interacting with the cached Git repository.
Generate a new instance with the given remote or return an existing object with the given remote. This should be used over R10K::Git::Cache.new.
@api public @param remote [String] The git remote to cache @return [R10K::Git::Cache] The requested cache object.