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

import_protected_branch_worker.rb « github_import « gitlab « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c083d8ee86762dbd744cb09e423c928f6c52ed67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Gitlab
  module GithubImport
    class ImportProtectedBranchWorker # rubocop:disable Scalability/IdempotentWorker
      include ObjectImporter

      worker_resource_boundary :cpu

      def representation_class
        Gitlab::GithubImport::Representation::ProtectedBranch
      end

      def importer_class
        Importer::ProtectedBranchImporter
      end

      def object_type
        :protected_branch
      end
    end
  end
end