diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-27 04:38:39 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-27 04:38:39 +0000 |
commit | 985cb441103c79651f12a013326aa15f54fa8182 (patch) | |
tree | 4aa28f1488ba5cdf66e58ed6df0aa448dfdbba0b /railties/lib/tasks/pre_namespace_aliases.rake | |
parent | 1a06d324df43bfb3287293934f0ef34a7c790a34 (diff) | |
download | rails-985cb441103c79651f12a013326aa15f54fa8182.tar.gz rails-985cb441103c79651f12a013326aa15f54fa8182.tar.bz2 rails-985cb441103c79651f12a013326aa15f54fa8182.zip |
Added namespaces to all tasks, so for example load_fixtures is now db:fixtures:load. All the old task names are still valid, they just point to the new namespaced names. "rake -T" will only show the namespaced ones, though [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks/pre_namespace_aliases.rake')
-rw-r--r-- | railties/lib/tasks/pre_namespace_aliases.rake | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/railties/lib/tasks/pre_namespace_aliases.rake b/railties/lib/tasks/pre_namespace_aliases.rake new file mode 100644 index 0000000000..24005e7772 --- /dev/null +++ b/railties/lib/tasks/pre_namespace_aliases.rake @@ -0,0 +1,46 @@ +# clear +task :clear_logs => "clear:logs" + +# test +task :recent => "test:recent" +task :test_units => "test:units" +task :test_functional => "test:functionals" +task :test_plugins => "test:plugins" + + +# doc +task :appdoc => "doc:app" +task :apidoc => "doc:rails" +task :plugindoc => "doc:plugins" +task :clobber_plugindoc => "doc:clobber_plugins" + +FileList['vendor/plugins/**'].collect { |plugin| File.basename(plugin) }.each do |plugin| + task :"#{plugin}_plugindoc" => "doc:plugins:#{plugin}" +end + + +# rails +task :freeze_gems => "rails:freeze:gems" +task :freeze_edge => "rails:freeze:edge" +task :unfreeze_rails => "rails:unfreeze" +task :add_new_scripts => "rails:update:scripts" +task :update_javascripts => "rails:update:javascripts" + + +# db +task :migrate => "db:migrate" +task :load_fixtures => "db:fixtures:load" + +task :db_schema_dump => "db:schema:dump" +task :db_schema_import => "db:schema:load" + +task :db_structure_dump => "db:structure:dump" + +task :purge_test_database => "db:test:purge" +task :clone_schema_to_test => "db:test:clone" +task :clone_structure_to_test => "db:test:clone_structure" +task :prepare_test_database => "db:test:prepare" + +task :create_sessions_table => "db:sessions:create" +task :drop_sessions_table => "db:sessions:drop" +task :purge_sessions_table => "db:sessions:recreate" |