public
Last active

Documentation for a ruby gem to send xmpp messages with a gtalk account

  • Download Gist
test.md
Markdown

Gtalk

A ruby gem to send xmpp messages with a gtalk account

installation

  sudo gem install gtalk

setup

  vim ~/.bashrc
  export GTALK_LOGIN="me"
  export GTALK_PASSWORD="pwd"                   #the following are optional
  export GTALK_ME="me@gmail.com"                #for gtalk and gtalk_me
  export GTALK_US="me@gmail.com,him@gmail.com"  #for gtalk_us
  export GTALK_HEADER="["`hostname`"] "         #to prepend to any msg e.g the machine name
  exec bash

usage

  pry
  require 'gtalk'

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

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

  # notify someone
  gtalk_to "x@gmail.com", "test"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.