Skip to content

fridaypulse/notifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notifier

This gem provides a (very) light wrapper around the HipChat gem, to make it easier to send notifications to HipChat rooms from Rails.

Installation

Add this line to your application's Gemfile:

gem 'notifier'

And then execute:

$ bundle

Or install it yourself as:

$ gem install notifier

Usage

Add the following to config/initializers/notifier.rb:

Notifier.configure do |config|
    config.api_key = "<hipchat-api-key>"
    config.room_name = "My Room"
    config.user_name = "RoomBot"
    config.environments = [:production]
end

Notify HipChat from within your app:

Notifier::success("This is a success message!")
Notifier::warning("This is a warning message!")
Notifier::success("This is an error message!")

About

Light wrapper for the HipChat gem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%