Megaphone is a gem for adding messages to the Campfire chat, sending messages to the OpsGenie API, interfacing with the StatHat API, and creating Tumbler tickets.
Add this line to your application's Gemfile:
gem 'megaphone'
And then execute:
$ bundle
Or install it yourself as:
$ gem install megaphone
Example use of Campfire:
args = {room_name: 'notifications', ssl: true, token: '[protected]'}
campfire = Megaphone::Campfire.new(args)
p campfire.session
p campfire.room
campfire.speak("Howdy")
Example use of TumblerTicket
t = Megaphone::TumblerTicket.new(application: "fake_application", deployer_name: "Frankie", rails_env: "development",
git_hash: "1234", uri: "http://localhost:3000/", tumbler_api_key: "[protected]")
t.make_post_request