summaryrefslogtreecommitdiff
path: root/app/services/system_hooks_service.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/services/system_hooks_service.rb
parent5bb435d0e75ad84e2fc379208cc36a25a4574453 (diff)
downloadgitlab-ce-eff5746b5e7cf4075edd6d1c76fdcd24c1603bb4.tar.gz
Redesign plugins system
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/system_hooks_service.rb')
-rw-r--r--app/services/system_hooks_service.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/services/system_hooks_service.rb b/app/services/system_hooks_service.rb
index ba46c0074e4..af8c02a10b7 100644
--- a/app/services/system_hooks_service.rb
+++ b/app/services/system_hooks_service.rb
@@ -12,14 +12,7 @@ class SystemHooksService
hook.async_execute(data, 'system_hooks')
end
- # Execute external plugins
- Gitlab::Plugin.all.each do |plugin|
- begin
- plugin.new.execute(data)
- rescue => e
- Rails.logger.warn("GitLab -> Plugins -> #{plugin.class.name} raised an axception during execution. #{e}")
- end
- end
+ Gitlab::Plugin.execute_all_async(data)
end
private