Class: PhusionPassenger::Standalone::HelpCommand

Inherits:
Command show all
Defined in:
lib/phusion_passenger/standalone/help_command.rb

Constant Summary

Constants inherited from Command

Command::DEFAULT_OPTIONS

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

description, #initialize

Constructor Details

This class inherits a constructor from PhusionPassenger::Standalone::Command

Class Method Details

.show_in_command_listObject



29
30
31
# File 'lib/phusion_passenger/standalone/help_command.rb', line 29

def self.show_in_command_list
	return false
end

Instance Method Details

#runObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/phusion_passenger/standalone/help_command.rb', line 33

def run
	puts "Phusion Passenger Standalone, the easiest way to deploy Ruby web apps."
	puts
	puts "Available commands:"
	puts
	Main.each_command do |command_name, command_class|
		if command_class.show_in_command_list
			printf "  passenger %-15s  %s\n",
				command_name,
				wrap_desc(command_class.description, 51, 29)
		end
	end
	puts
	puts "Special options:"
	puts
	puts "  passenger --help      Display this help message."
	puts "  passenger --version   Display version number."
	puts
	puts "For more information about a specific command, please type"
	puts "'passenger <COMMAND> --help', e.g. 'passenger start --help'."
end