From a40989d27ea8a1c5d23dfd5b82f25e09527b2c80 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 5 Dec 2014 12:20:40 +0100 Subject: Added Slack notification service - Send notification at once for all commits --- app/workers/slack_notifier_worker.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/workers/slack_notifier_worker.rb (limited to 'app/workers') 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 -- cgit v1.2.1