Class: Rails::Command::App::UpdateCommand

Inherits:
Base
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rails/commands/app/update_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

banner, base_name, class_usage, command_name, default_command_root, desc, engine?, executable, exit_on_failure?, help, hide_command!, inherited, namespace, perform, printing_commands, usage_path

Methods included from Rails::Command::Actions

#boot_application!, #load_environment_config!, #load_generators, #load_tasks, #require_application!, #set_application_directory!

Instance Method Details

#active_storageObject



42
43
44
# File 'lib/rails/commands/app/update_command.rb', line 42

def active_storage
  app_generator.update_active_storage
end

#binObject



32
33
34
# File 'lib/rails/commands/app/update_command.rb', line 32

def bin
  app_generator.update_bin_files
end

#configsObject



26
27
28
29
# File 'lib/rails/commands/app/update_command.rb', line 26

def configs
  app_generator.create_boot_file
  app_generator.update_config_files
end

#performObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/rails/commands/app/update_command.rb', line 14

def perform
  require_application!
  Rails.application.deprecators.silenced = true

  configs
  bin
  public_directory
  active_storage
  display_upgrade_guide_info
end

#public_directoryObject



37
38
39
# File 'lib/rails/commands/app/update_command.rb', line 37

def public_directory
  app_generator.create_public_files
end