debian-mirror-gitlab/app/workers/ci/slack_notifier_worker.rb
2015-09-25 12:07:36 +05:30

10 lines
223 B
Ruby

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