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
45
# File 'lib/rails/commands/app/update_command.rb', line 42

def active_storage
  require_application!
  app_generator.update_active_storage
end

#binObject



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

def bin
  require_application!
  app_generator.update_bin_files
end

#configsObject



23
24
25
26
27
# File 'lib/rails/commands/app/update_command.rb', line 23

def configs
  require_application!
  app_generator.create_boot_file
  app_generator.update_config_files
end

#performObject



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

def perform
  configs
  bin
  public_directory
  active_storage
  display_upgrade_guide_info
end

#public_directoryObject



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

def public_directory
  require_application!
  app_generator.create_public_files
end