debian-mirror-gitlab/app/workers/ci/slack_notifier_worker.rb

11 lines
223 B
Ruby
Raw Normal View History

2015-09-25 12:07:36 +05:30
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