summaryrefslogtreecommitdiff
path: root/app/workers/plugin_worker.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-19 19:55:54 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 16:06:49 +0200
commiteff5746b5e7cf4075edd6d1c76fdcd24c1603bb4 (patch)
tree368bb9935f8cf3f6cbcf20c48c9f48e3456a96a2 /app/workers/plugin_worker.rb
parent5bb435d0e75ad84e2fc379208cc36a25a4574453 (diff)
downloadgitlab-ce-eff5746b5e7cf4075edd6d1c76fdcd24c1603bb4.tar.gz
Redesign plugins system
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/workers/plugin_worker.rb')
-rw-r--r--app/workers/plugin_worker.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/workers/plugin_worker.rb b/app/workers/plugin_worker.rb
new file mode 100644
index 00000000000..34a3c8d62ac
--- /dev/null
+++ b/app/workers/plugin_worker.rb
@@ -0,0 +1,9 @@
+class PluginWorker
+ include ApplicationWorker
+
+ sidekiq_options retry: false
+
+ def perform(file_name, data)
+ Gitlab::Plugin.execute(file_name, data)
+ end
+end