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:
authorValeriy Sizov <vsv2711@gmail.com>2012-07-15 16:29:06 +0400
committerValeriy Sizov <vsv2711@gmail.com>2012-07-19 01:25:10 +0400
commitf5908cef19a3cd2c44be02b453fecb568b2c6c8e (patch)
treee52c65ff40d483450d10dcf008077c95c1b91b78 /app/workers
parentc38578428b19b6375f24266ea5f4a98ca290eb58 (diff)
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