Core of the `passenger` command (Passenger Standalone). Dispatches a subcommand to a specific class.
# File lib/phusion_passenger/standalone/main.rb, line 57 def self.help puts "#{PROGRAM_NAME} Standalone, the easiest way to run web apps." puts puts "Available commands:" puts puts " passenger start Start #{PROGRAM_NAME} Standalone." puts " passenger stop Stop a #{PROGRAM_NAME} instance." puts " passenger status Show the status of a running #{PROGRAM_NAME} instance." puts puts "Run 'passenger <COMMAND> --help' for more information about each command." end
# File lib/phusion_passenger/standalone/main.rb, line 37 def self.run!(argv) if argv.empty? help exit end command_class, new_argv = lookup_command_class_by_argv(argv) if help_requested?(argv) help elsif version_requested?(argv) show_version elsif command_class command = command_class.new(new_argv) command.run else help abort end end
Generated with the Darkfish Rdoc Generator 2.