Class: Storage::LegacyProject

Inherits:
Object
  • Object
show all
Defined in:
app/models/storage/legacy_project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#projectObject

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_dirString

Base directory

Returns:

  • (String)

    directory where repository is stored



16
17
18
# File 'app/models/storage/legacy_project.rb', line 16

def base_dir
  namespace.full_path
end

#disk_pathString

Disk path is used to build repository and project’s wiki path on disk

Returns:

  • (String)

    combination of base_dir and the repository own name without .git or .wiki.git extensions



23
24
25
# File 'app/models/storage/legacy_project.rb', line 23

def disk_path
  project.full_path
end