Rails
railties/lib/rails/app_updater.rb
View on GitHub
rails/generators
rails/generators/rails/app/app_generator