Class: Integrity::Notifier::Campfire
- Inherits:
-
Notifier::Base
- Object
- Notifier::Base
- Integrity::Notifier::Campfire
- Defined in:
- lib/integrity/notifier/campfire.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/integrity/notifier/campfire.rb', line 7 def config @config end |
Class Method Details
.to_haml ⇒ Object
9 10 11 |
# File 'lib/integrity/notifier/campfire.rb', line 9 def self.to_haml File.read File.dirname(__FILE__) / "config.haml" end |
Instance Method Details
#deliver! ⇒ Object
13 14 15 16 17 |
# File 'lib/integrity/notifier/campfire.rb', line 13 def deliver! room.speak "#{}. #{commit_url}" room.paste if commit.failed? room.leave end |