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

import_users_worker.rb « stage « bitbucket_server_import « gitlab « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd18139fc9e3dc9fdd85dcff15045ef144784337 (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
# frozen_string_literal: true

module Gitlab
  module BitbucketServerImport
    module Stage
      class ImportUsersWorker # rubocop:disable Scalability/IdempotentWorker -- ImportPullRequestsWorker is not idempotent
        include StageMethods

        private

        def import(project)
          importer = importer_class.new(project)

          importer.execute

          ImportPullRequestsWorker.perform_async(project.id)
        end

        def importer_class
          Importers::UsersImporter
        end
      end
    end
  end
end