summaryrefslogtreecommitdiff
path: root/app/models/bulk_imports/file_transfer/project_config.rb
blob: 9a0434da08a710ad0bbdc91b7be680b519cc9f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module BulkImports
  module FileTransfer
    class ProjectConfig < BaseConfig
      UPLOADS_RELATION = 'uploads'

      SKIPPED_RELATIONS = %w(
        project_members
        group_members
      ).freeze

      def import_export_yaml
        ::Gitlab::ImportExport.config_file
      end

      def file_relations
        [UPLOADS_RELATION]
      end

      def skipped_relations
        SKIPPED_RELATIONS
      end
    end
  end
end