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:
parent
826a6a72fe
commit
a08a8cd8d2
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue