Module R10K::Git
In: lib/r10k/git/errors.rb
lib/r10k/git/shellgit.rb
lib/r10k/git/rugged.rb
lib/r10k/git.rb

Methods

Classes and Modules

Module R10K::Git::Rugged
Module R10K::Git::ShellGit
Class R10K::Git::Alternates
Class R10K::Git::Cache
Class R10K::Git::Commit
Class R10K::Git::GitError
Class R10K::Git::Head
Class R10K::Git::Ref
Class R10K::Git::RemoteHead
Class R10K::Git::Repository
Class R10K::Git::StatefulRepository
Class R10K::Git::Tag
Class R10K::Git::UnresolvableRefError
Class R10K::Git::WorkingDir

Constants

NULL_PROVIDER = Object.new   Mark the current provider as invalid.

If a provider is set to an invalid provider, we need to make sure that the provider doesn‘t fall back to the default value, thereby ignoring the explicit value and silently continuing. If the current provider is assigned to this value, no provider will be used until the provider is either reset or assigned a valid provider.

@api private

UNSET_PROVIDER = Object.new   Mark the current provider as unset.

If the provider has never been set we need to indicate that there is no current value but the default value can be used. If the current provider is assigned to this value and the provider is looked up, the default provider will be looked up and used.

@api private

Public Class methods

Return the first available Git provider.

@raise [R10K::Error] if no Git providers are functional. @return [Module] The namespace of the first available Git implementation.

  Implementation classes should be looked up against this returned Module.

@return [Module] The namespace of the first available Git implementation.

  Implementation classes should be looked up against this returned Module.

Manually set the Git provider by name.

@param name [Symbol] The name of the Git provider to use. @raise [R10K::Error] if the requested Git provider doesn‘t exist. @raise [R10K::Error] if the requested Git provider isn‘t functional. @return [void]

Clear the currently set provider.

@api private

[Validate]