lib/merrycms/railties/merrycms_tasks.rake in merrycms-0.1.4 vs lib/merrycms/railties/merrycms_tasks.rake in merrycms-0.1.7

- old
+ new

@@ -3,13 +3,11 @@ desc "setup" task :setup => :environment do system("rails generate merrycms:install_auth") system("rails generate merrycms:install_pages") system("rails generate merrycms:install_translations") - system("rails generate merrycms:install_images") - system("rails generate merrycms:install_documents") - system("rails generate merrycms:install_videos") + system("rails generate merrycms:install_media") system("rails generate jquery:install") Rake::Task['merrycms:import_assets'].invoke Rake::Task['db:migrate'].invoke @@ -22,11 +20,11 @@ command = "cp -R #{merrycms_assets} #{Rails.root}/" puts command system(command) end - desc "bootstrap app" + desc "bootstrap app : create admin user and root category" task :bootstrap => :environment do create_admins create_root_cat end @@ -45,10 +43,10 @@ def create_root_cat Category.find_or_create_by_name("root") end - desc "cleanup current app" + desc "CAUTIOUS : cleanup current app by dropping the DB and removing all migration files" task :cleanapp => :environment do Rake::Task['db:drop'].invoke command = "rm -rf #{Rails.root}/db/migrate/*" puts command system command \ No newline at end of file