Class: Cow_Cluster::Stop
- Inherits:
-
Object
show all
- Includes:
- Base, Mongrel::Command::Base
- Defined in:
- lib/mongrel_cow_cluster/init.rb
Instance Method Summary
collapse
Methods included from Base
#close_rails_connections, #each_port, #get_unbound_port, #load_settings, #open_rails_connections, #port_log_file, #port_pid_file, #rails_preload, #read_options, #reopen_child_log, #restart_run, #spawn_child, #start_options, #stop_child, #stop_options, #validate_start_options, #validate_stop_options, #wait_for_child_ready, #write_child_pid
Instance Method Details
400
401
402
|
# File 'lib/mongrel_cow_cluster/init.rb', line 400
def configure
options stop_options
end
|
#run ⇒ Object
408
409
410
411
412
413
414
415
|
# File 'lib/mongrel_cow_cluster/init.rb', line 408
def run
settings = { :cwd => @cwd, :only => @only, :wait => @wait,
:port => @port, :servers => @servers,
:pid_file => @pid_file }
read_options(settings)
each_port(settings) { |port| stop_child(settings, port) }
end
|
#validate ⇒ Object
404
405
406
|
# File 'lib/mongrel_cow_cluster/init.rb', line 404
def validate
validate_stop_options
end
|