summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorValeriy Sizov <vsv2711@gmail.com>2012-07-15 15:29:06 +0300
committerValeriy Sizov <vsv2711@gmail.com>2012-07-19 00:25:10 +0300
commitf5908cef19a3cd2c44be02b453fecb568b2c6c8e (patch)
treee52c65ff40d483450d10dcf008077c95c1b91b78 /app/workers
parentc38578428b19b6375f24266ea5f4a98ca290eb58 (diff)
downloadgitlab-ce-f5908cef19a3cd2c44be02b453fecb568b2c6c8e.tar.gz
System Hook: implemented
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/system_hook_worker.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/workers/system_hook_worker.rb b/app/workers/system_hook_worker.rb
new file mode 100644
index 00000000000..ca154136b97
--- /dev/null
+++ b/app/workers/system_hook_worker.rb
@@ -0,0 +1,7 @@
+class SystemHookWorker
+ @queue = :system_hook
+
+ def self.perform(hook_id, data)
+ SystemHook.find(hook_id).execute data
+ end
+end