Class: Gitlab::BackgroundMigration::BackfillProjectRepositories::Storage::LegacyProject

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/background_migration/backfill_project_repositories.rb

Overview

Class that returns the disk path for a project using legacy storage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ LegacyProject

Returns a new instance of LegacyProject.


71
72
73
# File 'lib/gitlab/background_migration/backfill_project_repositories.rb', line 71

def initialize(project)
  @project = project
end

Instance Attribute Details

#projectObject

Returns the value of attribute project


69
70
71
# File 'lib/gitlab/background_migration/backfill_project_repositories.rb', line 69

def project
  @project
end

Instance Method Details

#disk_pathObject


75
76
77
# File 'lib/gitlab/background_migration/backfill_project_repositories.rb', line 75

def disk_path
  project.full_path
end