Class R10K::Git::Repository
In: lib/r10k/git/repository.rb
Parent: Object

Define an abstract base class for git repositories.

@deprecated This has been replaced by the ShellGit provider and the

  StatefulRepository class and will be removed in 2.0.0

:nocov:

Methods

Attributes

basedir  [R]  @!attribute [r] basedir
  @return [String] The directory containing the repository
dirname  [R]  @!attribute [r] dirname
  @return [String] The name of the directory
git_dir  [R]  @!attribute [r] git_dir
  Set the path to the git directory. For git repositories with working copies
  this will be `$working_dir/.git`; for bare repositories this will be
  `bare-repo.git`
  @return [String] The path to the git directory
remote  [R]  @!attribute [r] remote
  @return [String] The URL to the git repository

Public Instance methods

@return [Hash<String, String>] A hash of remote names and fetch URLs @api private

Define the same interface for resolving refs.

Resolve a ref to a git commit. The given pattern can be a commit, tag, or a local or remote branch

@param [String] pattern

@return [String] The dereferenced hash of `pattern`

rev_parse(pattern)

Alias for resolve_ref

[Validate]