Class: Gitlab::GitAccessProject

Inherits:
GitAccess show all
Extended by:
Utils::Override
Defined in:
lib/gitlab/git_access_project.rb

Constant Summary collapse

CreationError =
Class.new(StandardError)
ERROR_MESSAGES =
{
  namespace_not_found: 'The namespace you were looking for could not be found.'
}.freeze

Constants inherited from GitAccess

Gitlab::GitAccess::ALL_COMMANDS, Gitlab::GitAccess::ANY, Gitlab::GitAccess::DOWNLOAD_COMMANDS, Gitlab::GitAccess::ForbiddenError, Gitlab::GitAccess::INTERNAL_TIMEOUT, Gitlab::GitAccess::LOG_HEADER, Gitlab::GitAccess::NotFoundError, Gitlab::GitAccess::PUSH_COMMANDS, Gitlab::GitAccess::ProjectMovedError, Gitlab::GitAccess::TimeoutError

Instance Attribute Summary

Attributes inherited from GitAccess

#actor, #auth_result_type, #authentication_abilities, #changes, #cmd, #container, #namespace_path, #protocol, #redirected_path

Instance Method Summary collapse

Methods included from Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from GitAccess

#build_can_download_code?, #check, #deploy_key_can_download_code?, #guest_can_download_code?, #initialize, #logger, #protocol_allowed?, #repository_path, #request_from_ci_build?, #user_can_download_code?

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

This class inherits a constructor from Gitlab::GitAccess

Instance Method Details

#download_abilityObject


14
15
16
# File 'lib/gitlab/git_access_project.rb', line 14

def download_ability
  :download_code
end

#push_abilityObject


19
20
21
# File 'lib/gitlab/git_access_project.rb', line 19

def push_ability
  :push_code
end