Class: Projects::HashedStorage::BaseRepositoryService

Inherits:
BaseService
  • Object
show all
Includes:
Gitlab::ShellAdapter
Defined in:
app/services/projects/hashed_storage/base_repository_service.rb

Instance Attribute Summary collapse

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::ShellAdapter

#gitlab_shell

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

#can?

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

#loggerObject (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_designObject (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_wikiObject (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_pathObject (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_pathObject (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_versionObject (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