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)

Methods

bare_repository   generate   instance_cache   new   path   reset!   sync   sync!   synced?  

Included Modules

R10K::Settings::Mixin R10K::Logging

External Aliases

exist? -> cached?

Attributes

repo  [R]  @!attribute [r] repo
  @api private

Public Class methods

@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.

@api private

@param remote [String] The URL of the Git remote URL to cache.

Public Instance methods

@!attribute [r] path

  @deprecated
  @return [String] The path to the git cache repository

@api private

[Validate]