Methods

Class/Module Index [+]

Quicksearch

PhusionPassenger::Config

Core of the `passenger-config` command. Dispatches a subcommand to a specific class.

Public Class Methods

help() click to toggle source
# File lib/phusion_passenger/config/main.rb, line 67
def self.help
        puts "Usage: passenger-config <COMMAND> [options]"
        puts "Tool for controlling or configurating a #{PROGRAM_NAME} instance or installation."
        puts
        puts "Available commands:"
        KNOWN_COMMANDS.each do |props|
                command_class = lookup_command_class_by_class_name(props[1])
                printf "  %-18s %s\n", props[0], command_class.description
        end
        puts
        puts "Type 'passenger-config <COMMAND> --help' for more information."
end
run!(argv) click to toggle source
# File lib/phusion_passenger/config/main.rb, line 54
def self.run!(argv)
        command_class, new_argv = lookup_command_class_by_argv(argv)
        if help_requested?(argv)
                help
        elsif command_class
                command = command_class.new(new_argv)
                command.run
        else
                help
                abort
        end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.