Newer
Older
James Lopez
committed
module Gitlab
# For every version update, the version history in import_export.md has to be kept up to date.
James Lopez
committed
VERSION = '0.1.5'
FILENAME_LIMIT = 50
def export_path(relative_path:)
end
def storage_path
File.join(Settings.shared['path'], 'tmp/project_exports')
end
James Lopez
committed
def import_upload_path(filename:)
File.join(storage_path, 'uploads', filename)
end
def project_filename
"project.json"
end
def project_bundle_filename
"project.bundle"
end
Rails.root.join('lib/gitlab/import_export/import_export.yml')
def export_filename(project:)
basename = "#{Time.now.strftime('%Y-%m-%d_%H-%M-%3N')}_#{project.namespace.path}_#{project.path}"
"#{basename[0..FILENAME_LIMIT]}_export.tar.gz"
end
def reset_tokens?
true
end