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

group_export_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51dbdc95661b1bd81860102ddefd2409ffef6b44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class GroupExportWorker
  include ApplicationWorker
  include ExceptionBacktrace

  feature_category :source_code_management

  def perform(current_user_id, group_id, params = {})
    current_user = User.find(current_user_id)
    group        = Group.find(group_id)

    ::Groups::ImportExport::ExportService.new(group: group, user: current_user, params: params).execute
  end
end