mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
Fixed a couple of errors on import/export spotted in production Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/18828 and https://gitlab.com/gitlab-org/gitlab-ce/issues/18829 A couple of tiny bugs spotted after deploying in prod See merge request !4782
40 lines
616 B
Ruby
40 lines
616 B
Ruby
module Gitlab
|
|
module ImportExport
|
|
extend self
|
|
|
|
VERSION = '0.1.0'
|
|
|
|
def export_path(relative_path:)
|
|
File.join(storage_path, relative_path)
|
|
end
|
|
|
|
def storage_path
|
|
File.join(Settings.shared['path'], 'tmp/project_exports')
|
|
end
|
|
|
|
def project_filename
|
|
"project.json"
|
|
end
|
|
|
|
def project_bundle_filename
|
|
"project.bundle"
|
|
end
|
|
|
|
def config_file
|
|
Rails.root.join('lib/gitlab/import_export/import_export.yml')
|
|
end
|
|
|
|
def version_filename
|
|
'VERSION'
|
|
end
|
|
|
|
def version
|
|
VERSION
|
|
end
|
|
|
|
def reset_tokens?
|
|
true
|
|
end
|
|
end
|
|
end
|