Sha256: 5762e0b3d3628d27b8003f5e134c920f317d899eebf70b0c6bef43b921047555

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

namespace :couchrest do

  
  task :merb_start do
    Merb.start :adapter => 'runner',
               :environment => ENV['MERB_ENV'] || 'development'
  end
  
  namespace :sessions do
    
    desc "Clears sessions"
    task :clear => :merb_start do
      
      Merb::CouchRestSessionStore.all.each{ |doc| doc.database.delete_doc(doc,true) }
      Merb::CouchRestSessionStore.database.bulk_save()
      
    end
    
  end
  
  
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mohiam-merb_couchrest-0.1.4 lib/merb_couchrest/merbtasks.rb
mohiam-merb_couchrest-0.1.6 lib/merb_couchrest/merbtasks.rb