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.
18 19 20 21 |
# File 'lib/notifier/irc.rb', line 18 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 13 14 15 16 |
# File 'lib/notifier/irc.rb', line 10 def self.to_haml <<-HAML %p.normal %label{ :for => 'irc_notifier_uri' } Send to %input.text#irc_notifier_uri{ :name => 'notifiers[IRC][uri]', :type => 'text', :value => config['uri'] || 'irc://[email protected]:6667/#test' } HAML end |
Instance Method Details
#deliver! ⇒ Object
23 24 25 26 27 28 |
# File 'lib/notifier/irc.rb', line 23 def deliver! ShoutBot.shout(uri) do |channel| channel.say "#{build.project.name}: #{}" channel.say commit_url end end |