presence/lib/tasks/presence/synchronize.rake in social_stream-0.22.0 vs presence/lib/tasks/presence/synchronize.rake in social_stream-0.22.1
- old
+ new
@@ -30,7 +30,22 @@
domain = args[:domain]
end
SocialStream::Presence::XmppServerOrder::synchronizeRosters(domain)
puts "Rosters Synchronization complete"
end
+
+ desc "Synchronize Xmpp Server database with Social Stream Rails Application database."
+ desc "Remove all rooms and create one room (also knowledge as MUC) for each Social Stream group."
+ task :rooms, [:domain] => :environment do |t, args|
+ puts "Starting presence:synchronize:rooms"
+ unless args[:domain]
+ puts "No web domain specified"
+ domain = SocialStream::Presence.domain
+ puts "Executing rake presence:synchronize:rooms[" + domain + "]"
+ else
+ domain = args[:domain]
+ end
+ SocialStream::Presence::XmppServerOrder::synchronizeRooms(domain)
+ puts "Rooms Synchronization complete"
+ end
end
end