Class: Cerberus::Publisher::Campfire

Inherits:
Base
  • Object
show all
Defined in:
lib/cerberus/publisher/campfire.rb

Class Method Summary collapse

Methods inherited from Base

formatted_message

Class Method Details

.publish(state, manager, options) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/cerberus/publisher/campfire.rb', line 4

def self.publish(state, manager, options)
  url = options[:publisher, :campfire, :url]
  
  subject,body = Cerberus::Publisher::Base.formatted_message(state, manager, options)
  Marshmallow.say(url, subject)
  Marshmallow.paste(url, body)
end