diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2014-12-05 12:20:40 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-01-12 19:53:13 +0100 |
commit | a40989d27ea8a1c5d23dfd5b82f25e09527b2c80 (patch) | |
tree | 9be1f8feaaf66103ed4affed070a784d5a474ff8 /app/workers | |
parent | 0e93695f8ef3a889104b23ce9be4f37042d7388f (diff) | |
download | gitlab-ci-a40989d27ea8a1c5d23dfd5b82f25e09527b2c80.tar.gz |
Added Slack notification service
- Send notification at once for all commits
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/slack_notifier_worker.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/workers/slack_notifier_worker.rb b/app/workers/slack_notifier_worker.rb new file mode 100644 index 0000000..54c7d11 --- /dev/null +++ b/app/workers/slack_notifier_worker.rb @@ -0,0 +1,8 @@ +class SlackNotifierWorker + include Sidekiq::Worker + + def perform(webhook_url, message, options={}) + notifier = Slack::Notifier.new(webhook_url) + notifier.ping(message, options) + end +end
\ No newline at end of file |