debian-mirror-gitlab/app/workers/group_export_worker.rb

16 lines
412 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# 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