Core of the `passenger-config` command. Dispatches a subcommand to a specific class.
# File lib/phusion_passenger/config/main.rb, line 72 def self.help(all = false) puts "Usage: passenger-config <COMMAND> [options]" puts "Tool for controlling or configurating a #{PROGRAM_NAME} instance or installation." puts puts "Management commands:" puts " detach-process Detach an application process from the process pool" puts " restart-app Restart an application" puts puts "Informational commands:" puts " validate-install Validate this #{PROGRAM_NAME} installation" puts " list-instances List running #{PROGRAM_NAME} instances" puts " about Show information about #{PROGRAM_NAME}" puts puts "Miscellaneous commands:" puts " build-native-support Ensure that the native_support library for the current" puts " Ruby interpeter is built" if all puts " system-metrics Display system metrics" end puts puts "Run 'passenger-config <COMMAND> --help' for more information about each" puts "command." if !all puts puts "There are also some advanced commands not shown in this help message. Run" puts "'passenger-config --help-all' to learn more about them." end end
# File lib/phusion_passenger/config/main.rb, line 57 def self.run!(argv) command_class, new_argv = lookup_command_class_by_argv(argv) if help_requested?(argv) help elsif help_all_requested?(argv) help(true) elsif command_class command = command_class.new(new_argv) command.run else help abort end end
Generated with the Darkfish Rdoc Generator 2.