diff options
author | Azul <azul@leap.se> | 2013-11-19 15:04:14 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-11-19 15:04:14 +0100 |
commit | cf68a79639861e69f61af85b43a3f72ed7763439 (patch) | |
tree | 93ad87436604a6a63cdd13c60aa042727023990f /core/lib/tasks | |
parent | e7a8b49ae30bce36846a5ab8f1fa2bb981100224 (diff) |
couchrest:dump task will dump all design docs
Diffstat (limited to 'core/lib/tasks')
-rw-r--r-- | core/lib/tasks/leap_web_core_tasks.rake | 13 |
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 + |