Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.451 kB
require 'rubygems'
require 'shout-bot' # $ sudo gem install sr-shout-bot --source=http://gems.github.com
# = IRC notifications for Pushr (http://github.com/karmi/pushr/)
class Pushr::Notifier::Irc < Pushr::Notifier::Base
def deliver!(notification)
return unless configured?
ShoutBot.shout(config['uri'], :as => "Pushr") { |channel| channel.say message(notification) }
end
private
def configured?
!config['uri'].nil?
end
end
Jump to Line
Something went wrong with that request. Please try again.