diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-02 11:47:03 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-02 11:47:03 +0200 |
commit | a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d (patch) | |
tree | 3a732a767a721ae71a9d9ae15c1e185c3a0cdb2f /railties/Rakefile | |
parent | 826a6a72fe8ab44080312b8bcc1f5dfd39c5a163 (diff) | |
download | rails-a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d.tar.gz rails-a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d.tar.bz2 rails-a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d.zip |
Add update tasks.
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 475954d064..830cdd6a80 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -68,16 +68,24 @@ task :clean do rm_rf PKG_DESTINATION end -# Get external spinoffs ------------------------------------------------------------------- +# Update spinoffs ------------------------------------------------------------------- desc "Updates railties to the latest version of the javascript spinoffs" task :update_js do for js in %w( prototype controls dragdrop effects ) - rm "html/javascripts/#{js}.js" - cp "./../actionpack/lib/action_view/helpers/javascripts/#{js}.js", "html/javascripts" + rm "lib/generators/rails/app/templates/public/javascripts/#{js}.js" + cp "./../actionpack/lib/action_view/helpers/javascripts/#{js}.js", + "lib/generators/rails/app/templates/public/javascripts" end end +desc "Updates application README to the latest version Railties README" +task :update_readme do + readme = "lib/generators/rails/app/templates/README" + rm readme + cp "./README", readme +end + # Run application generator ------------------------------------------------------------- task :create_rails do |