lib/eye/notify/jabber.rb in reel-eye-0.4.1 vs lib/eye/notify/jabber.rb in reel-eye-0.5

- old
+ new

@@ -1,5 +1,7 @@ +require 'xmpp4r' + class Eye::Notify::Jabber < Eye::Notify # Eye.config do # jabber :host => "some.host", :port => 12345, :user => "eye@some.host", :password => "123456" # contact :vasya, :jabber, "vasya@some.host" @@ -9,11 +11,9 @@ param :port, [String, Fixnum], true param :user, String, true param :password, String def execute - require 'xmpp4r' - debug "send jabber #{[host, port, user, password]} - #{[contact, message_body]}" mes = ::Jabber::Message.new(contact, message_body) mes.set_type(:normal) mes.set_id('1') \ No newline at end of file