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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 00:06:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-12 00:06:20 +0300
commit0c3f12149372a79b825d265a6c28dc547e4a1afc (patch)
tree43bdaa20afb0b061d09c56d8507efd51d28601be /app/workers/group_export_worker.rb
parentff67e3ed08355fb2d6f6e69d4ed06cd09052e573 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/group_export_worker.rb')
-rw-r--r--app/workers/group_export_worker.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/workers/group_export_worker.rb b/app/workers/group_export_worker.rb
new file mode 100644
index 00000000000..51dbdc95661
--- /dev/null
+++ b/app/workers/group_export_worker.rb
@@ -0,0 +1,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