Class: Projects::HashedStorage::BaseRepositoryService
- Inherits:
-
BaseService
- Object
- BaseService
- Projects::HashedStorage::BaseRepositoryService
- Includes:
- Gitlab::ShellAdapter
- Defined in:
- app/services/projects/hashed_storage/base_repository_service.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#move_design ⇒ Object
readonly
Returns the value of attribute move_design.
-
#move_wiki ⇒ Object
readonly
Returns the value of attribute move_wiki.
-
#new_disk_path ⇒ Object
readonly
Returns the value of attribute new_disk_path.
-
#old_disk_path ⇒ Object
readonly
Returns the value of attribute old_disk_path.
-
#old_storage_version ⇒ Object
readonly
Returns the value of attribute old_storage_version.
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
-
#initialize(project:, old_disk_path:, logger: nil) ⇒ BaseRepositoryService
constructor
A new instance of BaseRepositoryService.
Methods included from Gitlab::ShellAdapter
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
#initialize(project:, old_disk_path:, logger: nil) ⇒ BaseRepositoryService
Returns a new instance of BaseRepositoryService.
14 15 16 17 18 19 20 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 14 def initialize(project:, old_disk_path:, logger: nil) @project = project @logger = logger || Gitlab::AppLogger @old_disk_path = old_disk_path @move_wiki = has_wiki? @move_design = has_design? end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def logger @logger end |
#move_design ⇒ Object (readonly)
Returns the value of attribute move_design.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def move_design @move_design end |
#move_wiki ⇒ Object (readonly)
Returns the value of attribute move_wiki.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def move_wiki @move_wiki end |
#new_disk_path ⇒ Object (readonly)
Returns the value of attribute new_disk_path.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def new_disk_path @new_disk_path end |
#old_disk_path ⇒ Object (readonly)
Returns the value of attribute old_disk_path.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def old_disk_path @old_disk_path end |
#old_storage_version ⇒ Object (readonly)
Returns the value of attribute old_storage_version.
11 12 13 |
# File 'app/services/projects/hashed_storage/base_repository_service.rb', line 11 def old_storage_version @old_storage_version end |