Class: Storage::LegacyProject
- Inherits:
-
Object
- Object
- Storage::LegacyProject
- Defined in:
- app/models/storage/legacy_project.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#base_dir ⇒ String
Base directory.
-
#disk_path ⇒ String
Disk path is used to build repository and project’s wiki path on disk.
-
#initialize(project) ⇒ LegacyProject
constructor
A new instance of LegacyProject.
Constructor Details
#initialize(project) ⇒ LegacyProject
Returns a new instance of LegacyProject.
9 10 11 |
# File 'app/models/storage/legacy_project.rb', line 9 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
5 6 7 |
# File 'app/models/storage/legacy_project.rb', line 5 def project @project end |
Instance Method Details
#base_dir ⇒ String
Base directory
16 17 18 |
# File 'app/models/storage/legacy_project.rb', line 16 def base_dir namespace.full_path end |
#disk_path ⇒ String
Disk path is used to build repository and project’s wiki path on disk
23 24 25 |
# File 'app/models/storage/legacy_project.rb', line 23 def disk_path project.full_path end |