The xm
gem will help you send xm(pp)
messages quickly for e.g. : logging, process notification, alerts ...
gem instal xm
Create the .xm
file in your ENV["HOME"]
: vim ~/.xm
.
Adapt-paste one of the following yaml templates.
require "xm/version" | |
require 'xmpp4r' | |
require 'yaml' | |
module Xm | |
include Jabber | |
@@y = YAML.load_file(ENV['HOME']+'/.xm') | |
@@cl = Client.new(JID.new(@@y[:login])) | |
if @@y.has_key? :server | |
@@cl.connect(@@y[:server]) | |
else |