Sha256: da337a8a33cdcea7312a5156822748045207036bfb2aa6ba81782c4585d8c4c9
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
module DaemonKit # Thin wrapper around the blather DSL class XMPP include ::Blather::DSL class << self def run( &block ) DaemonKit::EM.run xmpp = new xmpp.instance_eval( &block ) xmpp.run end end def initialize @config = DaemonKit::Config.load('jabber') jid = if @config.resource "#{@config.jabber_id}/#{@config.resource}" else @config.jabber_id end setup jid, @config.password end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
daemon-kit-0.1.7.12 | lib/daemon_kit/xmpp.rb |
daemon-kit-0.1.7.11 | lib/daemon_kit/xmpp.rb |