Class: Integrity::Notifier::Campfire

Inherits:
Notifier::Base
  • Object
show all
Defined in:
lib/integrity/notifier/campfire.rb

Instance Attribute Summary collapse

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 "#{short_message}. #{commit_url}"
  room.paste full_message if commit.failed?
  room.leave
end