Skip to content

HipChat HTTP API Wrapper in Ruby with Capistrano hooks

License

Notifications You must be signed in to change notification settings

bradleybuda/hipchat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HipChat Wrapper

A very basic wrapper for the HipChat HTTP API.

Usage

client = HipChat::Client.new(api_token)
notify_users = false
client['my room'].send('username', 'A message!', notify_users)

Capistrano

require 'hipchat/capistrano'

set :hipchat_token, "<your token>"
set :hipchat_room_name, "Your room"
set :hipchat_announce, false # notify users

Who did it?

To determine the user that is currently running the deploy, the capistrano tasks will look for the following:

  1. The $HIPCHAT_USER environment variable
  2. The hipchat_human capistrano var.
  3. The git user.name var.
  4. The $USER environment variable.

Copyright

Copyright © 2010 Mojo Tech. See LICENSE for details.

About

HipChat HTTP API Wrapper in Ruby with Capistrano hooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%