gitlab-org--gitlab-foss/app/workers/ci/slack_notifier_worker.rb
2015-08-25 18:42:46 -07:00

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