Class: PeepingTom::Notifier::Campfire
- Inherits:
-
Object
- Object
- PeepingTom::Notifier::Campfire
- Defined in:
- lib/peeping_tom/notifier/campfire.rb
Instance Method Summary collapse
-
#initialize(subdomain, token, room) ⇒ Campfire
constructor
A new instance of Campfire.
- #notify!(site) ⇒ Object
Constructor Details
permalink #initialize(subdomain, token, room) ⇒ Campfire
Returns a new instance of Campfire.
6 7 8 9 |
# File 'lib/peeping_tom/notifier/campfire.rb', line 6 def initialize(subdomain, token, room) Broach.settings = {'account' => subdomain, 'token' => token} @room = room end |
Instance Method Details
permalink #notify!(site) ⇒ Object
[View source]
11 12 13 14 |
# File 'lib/peeping_tom/notifier/campfire.rb', line 11 def notify!(site) msg = "#{site.name} was tested at #{site.url}, and it's busted. You should look into that." Broach.speak(@room, msg) end |