class R10K::Git::Rugged::Cache

Public Class Methods

bare_repository() click to toggle source
# File lib/r10k/git/rugged/cache.rb, line 8
def self.bare_repository
  R10K::Git::Rugged::BareRepository
end

Public Instance Methods

sync!() click to toggle source

Update the remote URL if the cache differs from the current configuration

Calls superclass method R10K::Git::Cache#sync!
# File lib/r10k/git/rugged/cache.rb, line 13
def sync!
  if cached? && @repo.remotes['origin'] != @remote
    @repo.update_remote(@remote)
  end
  super
end