mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #25431 from prathamesh-sonpatki/add-note-about-upgrade-guide-at-the-end-of-update
Display link to Rails upgrade guide at the end of `rails app:update` task.
This commit is contained in:
commit
585ec13ca4
2 changed files with 10 additions and 1 deletions
|
@ -226,6 +226,11 @@ module Rails
|
|||
end
|
||||
remove_task :update_config_files
|
||||
|
||||
def display_upgrade_guide_info
|
||||
say "\nAfter this, check Rails upgrade guide at http://guides.rubyonrails.org/upgrading_ruby_on_rails.html for more details about upgrading your app."
|
||||
end
|
||||
remove_task :display_upgrade_info
|
||||
|
||||
def create_boot_file
|
||||
template "config/boot.rb"
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ require 'active_support/deprecation'
|
|||
|
||||
namespace :app do
|
||||
desc "Update configs and some other initially generated files (or use just update:configs or update:bin)"
|
||||
task update: [ "update:configs", "update:bin" ]
|
||||
task update: [ "update:configs", "update:bin", "update:upgrade_guide_info" ]
|
||||
|
||||
desc "Applies the template supplied by LOCATION=(/path/to/template) or URL"
|
||||
task template: :environment do
|
||||
|
@ -67,6 +67,10 @@ namespace :app do
|
|||
task :bin do
|
||||
RailsUpdate.invoke_from_app_generator :create_bin_files
|
||||
end
|
||||
|
||||
task :upgrade_guide_info do
|
||||
RailsUpdate.invoke_from_app_generator :display_upgrade_guide_info
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue