1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add update tasks.

This commit is contained in:
José Valim 2009-07-02 11:47:03 +02:00
parent 826a6a72fe
commit a08a8cd8d2

View file

@ -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