Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_config.rb « file_transfer « bulk_imports « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38884df9fcf83bf15d48b1ad8667510d99c2cb31 (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
      SKIPPED_RELATIONS = %w(
        project_members
        group_members
      ).freeze

      LFS_OBJECTS_RELATION = 'lfs_objects'

      def import_export_yaml
        ::Gitlab::ImportExport.config_file
      end

      def skipped_relations
        SKIPPED_RELATIONS
      end

      def file_relations
        [UPLOADS_RELATION, LFS_OBJECTS_RELATION]
      end
    end
  end
end