class Rails::AppUpdater

def generator_options

def generator_options
  options = { api: !!Rails.application.config.api_only, update: true }
  options[:skip_active_job]     = !defined?(ActiveJob::Railtie)
  options[:skip_active_record]  = !defined?(ActiveRecord::Railtie)
  options[:skip_active_storage] = !defined?(ActiveStorage::Engine)
  options[:skip_action_mailer]  = !defined?(ActionMailer::Railtie)
  options[:skip_action_mailbox] = !defined?(ActionMailbox::Engine)
  options[:skip_action_text]    = !defined?(ActionText::Engine)
  options[:skip_action_cable]   = !defined?(ActionCable::Engine)
  options[:skip_test]           = !defined?(Rails::TestUnitRailtie)
  options[:skip_system_test]    = Rails.application.config.generators.system_tests.nil?
  options[:skip_asset_pipeline] = !defined?(Sprockets::Railtie) && !defined?(Propshaft::Railtie)
  options[:skip_bootsnap]       = !defined?(Bootsnap)
  options[:updating]            = true
  options
end