Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4960

Show
Ignore:
Timestamp:
09/04/06 00:49:08 (2 years ago)
Author:
nzkoz
Message:

Formally deprecate the non-namespaced rake tasks. [Koz]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r4913 r4960  
    11*SVN* 
     2 
     3* Formally Deprecate the old rake tasks. [Koz] 
    24 
    35* Thoroughly test the FCGI dispatcher.  #5970 [Kevin Clark] 
  • trunk/railties/lib/tasks/pre_namespace_aliases.rake

    r3720 r4960  
     1def deprecated_task(name, new_name) 
     2  task name=>new_name do  
     3    $stderr.puts "The rake task #{name} has been deprecated, please use the replacement version #{new_name}" 
     4  end 
     5end 
     6 
     7 
    18# clear 
    2 task :clear_logs => "log:clear" 
     9deprecated_task :clear_logs, "log:clear" 
    310 
    411# test 
    5 task :recent          => "test:recent" 
    6 task :test_units      => "test:units" 
    7 task :test_functional => "test:functionals" 
    8 task :test_plugins    => "test:plugins" 
     12deprecated_task :recent,          "test:recent" 
     13deprecated_task :test_units,      "test:units" 
     14deprecated_task :test_functional, "test:functionals" 
     15deprecated_task :test_plugins,    "test:plugins" 
    916 
    1017 
    1118# doc 
    12 task :appdoc            => "doc:app" 
    13 task :apidoc            => "doc:rails" 
    14 task :plugindoc         => "doc:plugins" 
    15 task :clobber_plugindoc => "doc:clobber_plugins" 
     19deprecated_task :appdoc,            "doc:app" 
     20deprecated_task :apidoc,            "doc:rails" 
     21deprecated_task :plugindoc,        "doc:plugins" 
     22deprecated_task :clobber_plugindoc, "doc:clobber_plugins" 
    1623 
    1724FileList['vendor/plugins/**'].collect { |plugin| File.basename(plugin) }.each do |plugin| 
    18   task :"#{plugin}_plugindoc" => "doc:plugins:#{plugin}" 
     25  deprecated_task :"#{plugin}_plugindoc", "doc:plugins:#{plugin}" 
    1926end 
    2027 
    2128 
    2229# rails 
    23 task :freeze_gems        => "rails:freeze:gems" 
    24 task :freeze_edge        => "rails:freeze:edge" 
    25 task :unfreeze_rails     => "rails:unfreeze" 
    26 task :add_new_scripts    => "rails:update:scripts" 
    27 task :update_javascripts => "rails:update:javascripts" 
     30deprecated_task :freeze_gems,        "rails:freeze:gems" 
     31deprecated_task :freeze_edge,        "rails:freeze:edge" 
     32deprecated_task :unfreeze_rails,    "rails:unfreeze" 
     33deprecated_task :add_new_scripts,    "rails:update:scripts" 
     34deprecated_task :update_javascripts, "rails:update:javascripts" 
    2835 
    2936 
    3037# db 
    31 task :migrate                 => "db:migrate" 
    32 task :load_fixtures           => "db:fixtures:load" 
     38deprecated_task :migrate,      "db:migrate" 
     39deprecated_task :load_fixtures, "db:fixtures:load" 
    3340 
    34 task :db_schema_dump          => "db:schema:dump" 
    35 task :db_schema_import        => "db:schema:load" 
     41deprecated_task :db_schema_dump,  "db:schema:dump" 
     42deprecated_task :db_schema_import, "db:schema:load" 
    3643 
    37 task :db_structure_dump       => "db:structure:dump" 
     44deprecated_task :db_structure_dump, "db:structure:dump" 
    3845 
    39 task :purge_test_database     => "db:test:purge" 
    40 task :clone_schema_to_test    => "db:test:clone" 
    41 task :clone_structure_to_test => "db:test:clone_structure" 
    42 task :prepare_test_database   => "db:test:prepare" 
     46deprecated_task :purge_test_database,    "db:test:purge" 
     47deprecated_task :clone_schema_to_test,    "db:test:clone" 
     48deprecated_task :clone_structure_to_test, "db:test:clone_structure" 
     49deprecated_task :prepare_test_database,  "db:test:prepare" 
    4350 
    44 task :create_sessions_table   => "db:sessions:create" 
    45 task :drop_sessions_table     => "db:sessions:drop" 
    46 task :purge_sessions_table    => "db:sessions:recreate" 
     51deprecated_task :create_sessions_table, "db:sessions:create" 
     52deprecated_task :drop_sessions_table,  "db:sessions:drop" 
     53deprecated_task :purge_sessions_table, "db:sessions:recreate"