summaryrefslogtreecommitdiff
path: root/core/lib/tasks
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-08 09:12:37 +0200
committerAzul <azul@leap.se>2014-04-08 09:12:37 +0200
commit53808b073f539ba2b442738b6abf97228488e311 (patch)
tree67e344defee90e4d0c5f91f6136f6619e97c4ace /core/lib/tasks
parentcb6442c344d6bdaf52c3878b2de2fcf4d85f2648 (diff)
moving all of core into toplevel, tests fail.
Diffstat (limited to 'core/lib/tasks')
-rw-r--r--core/lib/tasks/leap_web_core_tasks.rake25
1 files changed, 0 insertions, 25 deletions
diff --git a/core/lib/tasks/leap_web_core_tasks.rake b/core/lib/tasks/leap_web_core_tasks.rake
deleted file mode 100644
index ec6abac..0000000
--- a/core/lib/tasks/leap_web_core_tasks.rake
+++ /dev/null
@@ -1,25 +0,0 @@
-namespace :couchrest do
-
- desc "Dump all the design docs found in each model"
- task :dump => :environment do
- CouchRest::Model::Utils::Migrate.load_all_models
- CouchRest::Model::Utils::Migrate.dump_all_models
- end
-end
-
-namespace :cleanup do
-
- desc "Cleanup all expired session documents"
- task :sessions => :environment do
- # make sure this is the same as in
- # config/initializers/session_store.rb
- store = CouchRest::Session::Store.new expire_after: 1800
- store.cleanup(store.expired)
- end
-
- desc "Cleanup all expired tokens"
- task :tokens => :environment do
- Token.destroy_all_expired
- end
-end
-