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

16 lines
439 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2020-04-08 14:13:33 +05:30
class GroupExportWorker # rubocop:disable Scalability/IdempotentWorker
2019-12-26 22:10:19 +05:30
include ApplicationWorker
include ExceptionBacktrace
2020-03-09 13:42:32 +05:30
feature_category :importers
2019-12-26 22:10:19 +05:30
def perform(current_user_id, group_id, params = {})
current_user = User.find(current_user_id)
2020-03-09 13:42:32 +05:30
group = Group.find(group_id)
2019-12-26 22:10:19 +05:30
::Groups::ImportExport::ExportService.new(group: group, user: current_user, params: params).execute
end
end