Class: Rails::Command::Db::System::ChangeCommand
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Rails::Command::Base ,
Thor
|
|
Instance Chain:
self,
::Rails::Command::Base ,
::Rails::Command::Actions ,
Thor
|
|
Inherits: |
Rails::Command::Base
|
Defined in: | railties/lib/rails/commands/db/system/change/change_command.rb |
Class Attribute Summary
::Rails::Command::Base
- Inherited
.bin, .bin?, | |
.engine? | Returns true when the app is a Rails engine. |
.exit_on_failure? |
Class Method Summary
::Rails::Command::Base
- Inherited
.banner, | |
.base_name | Sets the base_name taking into account the current class namespace. |
.command_name | Return command name without namespaces. |
.default_command_root | Default file root to place extra files a command might need, placed one folder above the command file. |
.desc | Tries to get the description from a USAGE file one folder above the command root. |
.executable, | |
.hide_command! | Convenience method to hide this command from the available ones when running rails command. |
.namespace | Convenience method to get the namespace from the class name. |
.printing_commands, | |
.usage_path | Path to lookup a USAGE description in a file. |
.create_command | Allow the command method to be called perform. |
.namespaced_name, .resolve_path, .class_usage, | |
.help | Override Thor’s class-level help to also show the USAGE. |
.inherited, .perform |
Instance Method Summary
::Rails::Command::Actions
- Included
#boot_application!, #load_environment_config!, | |
#load_generators | See additional method definition at line 36. |
#load_tasks | See additional method definition at line 31. |
#require_application!, | |
#set_application_directory! | Change to the application’s path if there is no |
Constructor Details
.new(positional_args, option_args) ⇒ ChangeCommand
# File 'railties/lib/rails/commands/db/system/change/change_command.rb', line 13
def initialize(positional_args, option_args, *) @argv = positional_args + option_args super end
Instance Method Details
#perform
[ GitHub ]# File 'railties/lib/rails/commands/db/system/change/change_command.rb', line 19
def perform(*) Rails::Generators::Db::System::ChangeGenerator.start(@argv) end