mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-28 22:16:15 +10:00
22 lines
438 B
Ruby
22 lines
438 B
Ruby
module Gitlab
|
|
module ImportExport
|
|
extend self
|
|
|
|
def export_path(relative_path:)
|
|
File.join(storage_path, relative_path)
|
|
end
|
|
|
|
def project_tree_list
|
|
project_tree.map {|r| r.is_a?(Hash) ? r.keys.first : r }
|
|
end
|
|
|
|
def project_tree
|
|
Gitlab::ImportExport::ImportExportReader.new.project_tree
|
|
end
|
|
|
|
def storage_path
|
|
File.join(Settings.shared['path'], 'tmp/project_exports')
|
|
end
|
|
end
|
|
end
|