Class: Rails::Command::HelpCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/rails/commands/help/help_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 Actions

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

Instance Method Details

#helpObject



8
9
10
# File 'lib/rails/commands/help/help_command.rb', line 8

def help(*)
  say self.class.class_usage
end

#help_extendedObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/rails/commands/help/help_command.rb', line 12

def help_extended(*)
  help

  say ""
  say "In addition to those commands, there are:"
  say ""

  extended_commands = printing_commands_not_in_usage.sort_by(&:first)
  print_table(extended_commands, truncate: true)
end