From a08a8cd8d24dd1a8342e0fd133c5e8ed09e1f56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 2 Jul 2009 11:47:03 +0200 Subject: [PATCH] Add update tasks. --- railties/Rakefile | 14 +++++++++++--- 1 file 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