lib/rake_tasks/decko.rake in decko-0.13.4 vs lib/rake_tasks/decko.rake in decko-0.14.0

- old
+ new

@@ -92,17 +92,19 @@ failing_loudly "decko update" do ENV["NO_RAILS_CACHE"] = "true" decko_namespace["migrate"].invoke decko_namespace["reset_tmp"].invoke Card::Cache.reset_all + Rake::Task["card:mod:uninstall"].invoke Rake::Task["card:mod:install"].invoke Rake::Task["card:mod:symlink"].invoke end end - alias_task "mod:symlink", "card:mod:symlink" - alias_task "mod:install", "card:mod:install" + %i[list symlink missing uninstall install].each do |task| + alias_task "mod:#{task}", "card:mod:#{task}" + end alias_task :migrate, "card:migrate" desc "insert existing card migrations into schema_migrations_cards " \ "to avoid re-migrating" task :assume_card_migrations do @@ -110,11 +112,10 @@ Cardio::Schema.assume_migrated_upto_version :core_cards end def seed with_cache_reset: true ENV["SCHEMA"] ||= "#{Cardio.gem_root}/db/schema.rb" - # FIXME: this should be an option, but should not happen on standard - # creates! + # FIXME: this should be an option, but should not happen on standard creates! begin Rake::Task["db:drop"].invoke rescue StandardError puts "not dropped" end