Sha256: acab332d7c538adf06a96e9e3718bd61153464b1eed0d7d84bfe9f918adec5fb

Contents?: true

Size: 856 Bytes

Versions: 8

Compression:

Stored size: 856 Bytes

Contents

namespace :presence do
  desc 'Synchronize Xmpp Server with Social Stream Rails Application'
  task :synchronize => [ 'presence:synchronize:connections', 'presence:synchronize:rosters' ]

  namespace :synchronize do

    desc "Synchronize user presence"
    task :connections => :environment do
      puts "Starting presence:synchronize:connections"
      SocialStream::Presence::XmppServerOrder::synchronize_presence
      puts "Synchronization complete"
    end

    desc "Synchronize Xmpp Server database with Social Stream Rails Application database"
    desc "Remove all rosters and populate rosters from Social Stream data."
    task :rosters => :environment do
        puts "Starting presence:synchronize:rosters"
        SocialStream::Presence::XmppServerOrder::synchronize_rosters
        puts "Rosters Synchronization complete"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
social_stream-presence-0.0.17 lib/tasks/presence/synchronize.rake
social_stream-presence-0.0.16 lib/tasks/presence/synchronize.rake
social_stream-presence-0.0.15 lib/tasks/presence/synchronize.rake
social_stream-presence-0.0.14 lib/tasks/presence/synchronize.rake
social_stream-0.12.1 presence/lib/tasks/presence/synchronize.rake
social_stream-presence-0.0.13 lib/tasks/presence/synchronize.rake
social_stream-0.12.0 presence/lib/tasks/presence/synchronize.rake
social_stream-presence-0.0.12 lib/tasks/presence/synchronize.rake