34 lines
685 B
Ruby
34 lines
685 B
Ruby
# frozen_string_literal: true
|
|
|
|
module BulkImports
|
|
module FileTransfer
|
|
class ProjectConfig < BaseConfig
|
|
SKIPPED_RELATIONS = %w(
|
|
project_members
|
|
group_members
|
|
).freeze
|
|
|
|
LFS_OBJECTS_RELATION = 'lfs_objects'
|
|
REPOSITORY_BUNDLE_RELATION = 'repository'
|
|
DESIGN_BUNDLE_RELATION = 'design'
|
|
|
|
def import_export_yaml
|
|
::Gitlab::ImportExport.config_file
|
|
end
|
|
|
|
def skipped_relations
|
|
SKIPPED_RELATIONS
|
|
end
|
|
|
|
def file_relations
|
|
[
|
|
UPLOADS_RELATION,
|
|
LFS_OBJECTS_RELATION,
|
|
REPOSITORY_BUNDLE_RELATION,
|
|
DESIGN_BUNDLE_RELATION
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|