Class: Gitlab::BackgroundMigration::BackfillProjectRepositories::Storage::LegacyProject
- Inherits:
-
Object
- Object
- Gitlab::BackgroundMigration::BackfillProjectRepositories::Storage::LegacyProject
- 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
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
- #disk_path ⇒ Object
-
#initialize(project) ⇒ LegacyProject
constructor
A new instance of LegacyProject.
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
#project ⇒ Object
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_path ⇒ Object
75 76 77 |
# File 'lib/gitlab/background_migration/backfill_project_repositories.rb', line 75 def disk_path project.full_path end |