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-2.2.2 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-2.2.1 lib/tasks/presence/multidomain.rake
social_stream-2.2.1 presence/lib/tasks/presence/multidomain.rake
social_stream-2.2.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-2.2.0 lib/tasks/presence/multidomain.rake
social_stream-2.1.1 presence/lib/tasks/presence/multidomain.rake
social_stream-1.1.12 presence/lib/tasks/presence/multidomain.rake
social_stream-2.1.0 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-2.1.0 lib/tasks/presence/multidomain.rake
social_stream-2.0.4 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-2.0.2 lib/tasks/presence/multidomain.rake
social_stream-2.0.3 presence/lib/tasks/presence/multidomain.rake
social_stream-1.1.11 presence/lib/tasks/presence/multidomain.rake
social_stream-1.1.10 presence/lib/tasks/presence/multidomain.rake
social_stream-1.1.9 presence/lib/tasks/presence/multidomain.rake
social_stream-1.1.8 presence/lib/tasks/presence/multidomain.rake
social_stream-2.0.2 presence/lib/tasks/presence/multidomain.rake
social_stream-presence-2.0.1 lib/tasks/presence/multidomain.rake
social_stream-2.0.1 presence/lib/tasks/presence/multidomain.rake
social_stream-2.0.0 presence/lib/tasks/presence/multidomain.rake