Methods

Class/Module Index [+]

Quicksearch

PhusionPassenger::Standalone

Core of the `passenger` command (Passenger Standalone). Dispatches a subcommand to a specific class.

Constants

KNOWN_COMMANDS

Public Class Methods

help() click to toggle source
# 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
run!(argv) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.