Class: Gitlab::GitAccessDesign

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

Constant Summary

Constants inherited from GitAccess

Gitlab::GitAccess::ALL_COMMANDS, Gitlab::GitAccess::ANY, Gitlab::GitAccess::DOWNLOAD_COMMANDS, Gitlab::GitAccess::ERROR_MESSAGES, 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?, #deploy_key_can_download_code?, #download_ability, #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

#check(_cmd, _changes) ⇒ Object


7
8
9
10
11
12
# File 'lib/gitlab/git_access_design.rb', line 7

def check(_cmd, _changes)
  check_protocol!
  check_can_create_design!

  success_result
end

#push_abilityObject


15
16
17
# File 'lib/gitlab/git_access_design.rb', line 15

def push_ability
  :create_design
end