Skip to content

Instantly share code, notes, and snippets.

@tobeportable
Created November 30, 2012 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobeportable/4174642 to your computer and use it in GitHub Desktop.
Save tobeportable/4174642 to your computer and use it in GitHub Desktop.

Gtalk

A ruby gem to send xmpp messages with a gtalk account

installation

sudo gem install gtalk

setup

vim ~/.bashrc
export GTALK_ME="me@gmail.com"
export GTALK_US="me@gmail.com,him@gmail.com"
export GTALK_HEADER="["`hostname`"] "
export GTALK_LOGIN="me"
export GTALK_PASSWORD="pwd"
exec bash

usage

pry
require 'gtalk'

# notify yourself cf. ENV['GTALK_ME']
gtalk "test" or gtalk "another test"

# notify your team cf. ENV['GTALK_US']
gtalk_us "test"

# notify someone
gtalk_to "x@gmail.com", "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment