lib/tasks/presence/synchronize.rake in social_stream-presence-0.0.4 vs lib/tasks/presence/synchronize.rake in social_stream-presence-0.0.5

- old
+ new

@@ -2,11 +2,10 @@ desc 'Synchronize the Xmpp Server database with the Social Stream database' task :synchronize => [ 'presence:synchronize:connections', 'presence:synchronize:rosters' ] namespace :synchronize do - desc "Synchronize user presence." task :connections => :environment do puts "Starting presence:synchronize:connections" puts "Synchronization complete" end @@ -24,9 +23,10 @@ ss_sid = ss_name + "@" + domain puts "Connecting to Xmpp Server" client = Jabber::Client.new(Jabber::JID.new(ss_sid)) client.connect + puts "Authentication..." client.auth(password) puts "Connected to Xmpp Server" puts "Remove all rosters" msg = Jabber::Message::new(ss_sid, "SynchronizeRosters")