Class: Integrity::Notifier::IRC
- Inherits:
-
Notifier::Base
- Object
- Notifier::Base
- Integrity::Notifier::IRC
- Defined in:
- lib/notifier/irc.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
- #deliver! ⇒ Object
-
#initialize(build, config = {}) ⇒ IRC
constructor
A new instance of IRC.
Constructor Details
#initialize(build, config = {}) ⇒ IRC
Returns a new instance of IRC.
14 15 16 17 |
# File 'lib/notifier/irc.rb', line 14 def initialize(build, config={}) @uri = config.delete("uri") super end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
8 9 10 |
# File 'lib/notifier/irc.rb', line 8 def uri @uri end |
Class Method Details
.to_haml ⇒ Object
10 11 12 |
# File 'lib/notifier/irc.rb', line 10 def self.to_haml File.read File.dirname(__FILE__) / "config.haml" end |
Instance Method Details
#deliver! ⇒ Object
19 20 21 22 23 24 |
# File 'lib/notifier/irc.rb', line 19 def deliver! ShoutBot.shout(uri, :as => "IntegrityBot") do |channel| channel.say "#{build.project.name}: #{short_message}" channel.say build_url end end |