2007-02-09 09:04:31 +01:00
|
|
|
def deprecated_task(name, new_name)
|
|
|
|
task name=>new_name do
|
|
|
|
$stderr.puts "The rake task #{name} has been deprecated, please use the replacement version #{new_name}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2007-01-22 14:43:50 +01:00
|
|
|
# clear
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :clear_logs, "log:clear"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
# test
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :recent, "test:recent"
|
|
|
|
deprecated_task :test_units, "test:units"
|
|
|
|
deprecated_task :test_functional, "test:functionals"
|
|
|
|
deprecated_task :test_plugins, "test:plugins"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
# doc
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :appdoc, "doc:app"
|
|
|
|
deprecated_task :apidoc, "doc:rails"
|
|
|
|
deprecated_task :plugindoc, "doc:plugins"
|
|
|
|
deprecated_task :clobber_plugindoc, "doc:clobber_plugins"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
FileList['vendor/plugins/**'].collect { |plugin| File.basename(plugin) }.each do |plugin|
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :"#{plugin}_plugindoc", "doc:plugins:#{plugin}"
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# rails
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :freeze_gems, "rails:freeze:gems"
|
|
|
|
deprecated_task :freeze_edge, "rails:freeze:edge"
|
|
|
|
deprecated_task :unfreeze_rails, "rails:unfreeze"
|
|
|
|
deprecated_task :add_new_scripts, "rails:update:scripts"
|
|
|
|
deprecated_task :update_javascripts, "rails:update:javascripts"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
# db
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :migrate, "db:migrate"
|
|
|
|
deprecated_task :load_fixtures, "db:fixtures:load"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :db_schema_dump, "db:schema:dump"
|
|
|
|
deprecated_task :db_schema_import, "db:schema:load"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :db_structure_dump, "db:structure:dump"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :purge_test_database, "db:test:purge"
|
|
|
|
deprecated_task :clone_schema_to_test, "db:test:clone"
|
|
|
|
deprecated_task :clone_structure_to_test, "db:test:clone_structure"
|
|
|
|
deprecated_task :prepare_test_database, "db:test:prepare"
|
2007-01-22 14:43:50 +01:00
|
|
|
|
2007-02-09 09:04:31 +01:00
|
|
|
deprecated_task :create_sessions_table, "db:sessions:create"
|
|
|
|
deprecated_task :drop_sessions_table, "db:sessions:drop"
|
|
|
|
deprecated_task :purge_sessions_table, "db:sessions:recreate"
|