Class: PhusionPassenger::Standalone::Command

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/phusion_passenger/standalone/command.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
	:address       => '0.0.0.0',
	:port          => 3000,
	:env           => ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development',
	:max_pool_size => 6,
	:min_instances => 1,
	:spawn_method  => 'smart-lv2',
	:nginx_version => PREFERRED_NGINX_VERSION
}.freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Command

Returns a new instance of Command.



51
52
53
54
55
# File 'lib/phusion_passenger/standalone/command.rb', line 51

def initialize(args)
	@args = args.dup
	@original_args = args.dup
	@options = DEFAULT_OPTIONS.dup
end

Class Method Details

.descriptionObject



47
48
49
# File 'lib/phusion_passenger/standalone/command.rb', line 47

def self.description
	return nil
end

.show_in_command_listObject



43
44
45
# File 'lib/phusion_passenger/standalone/command.rb', line 43

def self.show_in_command_list
	return true
end