Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 850 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 850 Bytes

Megaphone

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.

Installation

Add this line to your application's Gemfile:

gem 'megaphone'

And then execute:

$ bundle

Or install it yourself as:

$ gem install megaphone

Usage

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