Class: Rails::Command::ApplicationCommand

Inherits:
Base
  • Object
show all
Defined in:
railties/lib/rails/commands/application/application_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Base

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

Methods included from Actions

#load_generators, #load_tasks, #require_application!, #require_application_and_environment!, #require_environment!, #set_application_directory!

Instance Method Details

#helpObject



21
22
23
# File 'railties/lib/rails/commands/application/application_command.rb', line 21

def help
  perform # Punt help output to the generator.
end

#perform(*args) ⇒ Object



25
26
27
28
# File 'railties/lib/rails/commands/application/application_command.rb', line 25

def perform(*args)
  Rails::Generators::AppGenerator.start \
    Rails::Generators::ARGVScrubber.new(args).prepare!
end