summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-11-19 15:04:14 +0100
committerAzul <azul@leap.se>2013-11-19 15:04:14 +0100
commitcf68a79639861e69f61af85b43a3f72ed7763439 (patch)
tree93ad87436604a6a63cdd13c60aa042727023990f
parente7a8b49ae30bce36846a5ab8f1fa2bb981100224 (diff)
couchrest:dump task will dump all design docs
-rw-r--r--core/lib/tasks/leap_web_core_tasks.rake13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/lib/tasks/leap_web_core_tasks.rake b/core/lib/tasks/leap_web_core_tasks.rake
index ae5b79b..734fae9 100644
--- a/core/lib/tasks/leap_web_core_tasks.rake
+++ b/core/lib/tasks/leap_web_core_tasks.rake
@@ -1,4 +1,9 @@
-# desc "Explaining what the task does"
-# task :leap_web_core do
-# # Task goes here
-# end
+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
+