Sha256: ad89e8fd11a8e4aedb3727d1637c6f016c37f9ebaea2b310655b6e029cd7d22d

Contents?: true

Size: 1.52 KB

Versions: 84

Compression:

Stored size: 1.52 KB

Contents

namespace :presence do
  desc 'Add web domains to Xmpp Server'
  task :multidomain => [ 'presence:multidomain:add', 'presence:multidomain:remove' ,
  'presence:multidomain:update']

  namespace :multidomain do

    desc "Add new web domain to XMPP Server"
    task :add, [:domain, :url] => :environment do |t, args| 
      puts "Starting presence:multidomain:add"
      unless args[:domain]
        puts "Please specify a web domain"
        puts "Syntax: rake presence:multidomain:add[domain,[url]]"
        return
      end
      response = SocialStream::Presence::XmppServerOrder::addWebDomain(args[:domain],args[:url])
      puts response
    end

    desc "Remove web domain from the XMPP Server"
    task :remove, [:domain] => :environment do |t, args| 
      puts "Starting presence:multidomain:remove"
      unless args[:domain]
        puts "Please specify a web domain"
        puts "Syntax: rake presence:multidomain:remove[domain]"
        return
      end
      response = SocialStream::Presence::XmppServerOrder::removeWebDomain(args[:domain])
      puts response
    end
    
    desc "Update web domain of XMPP Server"
    task :update, [:domain, :url] => :environment do |t, args| 
      puts "Starting presence:multidomain:update"
      unless args[:domain]
        puts "Please specify a web domain"
        puts "Syntax: rake presence:multidomain:update[domain,[url]]"
        return
      end
      response = SocialStream::Presence::XmppServerOrder::updateWebDomain(args[:domain],args[:url])
      puts response
    end

  end
end

Version data entries

84 entries across 84 versions & 2 rubygems

Version Path
social_stream-0.30.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.17.0 lib/tasks/presence/multidomain.rake
social_stream-0.29.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.16.0 lib/tasks/presence/multidomain.rake
social_stream-0.28.4 presence/lib/tasks/presence/multidomain.rake
social_stream-0.28.1 presence/lib/tasks/presence/multidomain.rake
social_stream-0.28.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.15.0 lib/tasks/presence/multidomain.rake
social_stream-0.27.3 presence/lib/tasks/presence/multidomain.rake
social_stream-0.27.2 presence/lib/tasks/presence/multidomain.rake
social_stream-0.27.1 presence/lib/tasks/presence/multidomain.rake
social_stream-0.27.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.14.0 lib/tasks/presence/multidomain.rake
social_stream-0.26.2 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.13.3 lib/tasks/presence/multidomain.rake
social_stream-presence-0.13.2 lib/tasks/presence/multidomain.rake
social_stream-0.26.1 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.13.1 lib/tasks/presence/multidomain.rake
social_stream-0.26.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-0.13.0 lib/tasks/presence/multidomain.rake