diff options
Diffstat (limited to 'app/workers/ci/slack_notifier_worker.rb')
-rw-r--r-- | app/workers/ci/slack_notifier_worker.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/workers/ci/slack_notifier_worker.rb b/app/workers/ci/slack_notifier_worker.rb new file mode 100644 index 00000000000..3bbb9b4bec7 --- /dev/null +++ b/app/workers/ci/slack_notifier_worker.rb @@ -0,0 +1,10 @@ +module Ci + class SlackNotifierWorker + include Sidekiq::Worker + + def perform(webhook_url, message, options={}) + notifier = Slack::Notifier.new(webhook_url) + notifier.ping(message, options) + end + end +end |