12
PUBLISHING WITH BROADCAST Marcin Bunsch @marcinbunsch Sunday, May 29, 2011

Publishing with Broadcast

Embed Size (px)

DESCRIPTION

Presentation of the Broadcast gem that I failed to present because there was not enough time at the lighting talks. Enjoy! If you have questions, hit me up on Twitter - @marcinbunsch

Citation preview

Page 1: Publishing with Broadcast

PUBLISHINGWITH BROADCAST

Marcin Bunsch@marcinbunsch

Sunday, May 29, 2011

Page 2: Publishing with Broadcast

Sunday, May 29, 2011

Page 3: Publishing with Broadcast

Your appYou

Sunday, May 29, 2011

Page 4: Publishing with Broadcast

Your appYou

Sunday, May 29, 2011

Page 5: Publishing with Broadcast

Example:

jabber

Sunday, May 29, 2011

Page 6: Publishing with Broadcast

Broadcast.setup do |config| config.jabber { |jabber| jabber.username = '[email protected]' jabber.password = 'mypass' jabber.recipients = '[email protected]' }end

Sunday, May 29, 2011

Page 7: Publishing with Broadcast

class Signup < Broadcast::Message medium :jabber

def body str = "A new signup has occurred! " str += "We now have #{User.count} users!" endend

Sunday, May 29, 2011

Page 8: Publishing with Broadcast

Signup.new.publish

Sunday, May 29, 2011

Page 9: Publishing with Broadcast

Signup.new.delay.publish

Sunday, May 29, 2011

Page 10: Publishing with Broadcast

class Signup < Broadcast::Message medium :jabber medium :yammer medium :email medium :campfire

def body str = "A new signup has occurred! " str += "We now have #{User.count} users!" endend

Sunday, May 29, 2011

Page 11: Publishing with Broadcast

Currently Supported:

JabberEmail

TwitterYammer

LogCampfire

IRC

Sunday, May 29, 2011

Page 12: Publishing with Broadcast

github.com/futuresimple/broadcast

Fork it!

Sunday, May 29, 2011