Class: Seesaw::Restart
- Inherits:
-
Object
- Object
- Seesaw::Restart
- Includes:
- ExecBase
- Defined in:
- lib/seesaw/mongrel_cluster_patch.rb
Constant Summary
Constants included from ExecBase
ExecBase::STATUS_ERROR, ExecBase::STATUS_OK
Instance Method Summary collapse
Methods included from ExecBase
#chdir_cwd, #check_process, #clustered, #cmd_name, #find_pid, #log, #log_error, #log_verbose, #pid_file_exists?, #port_log_file, #port_pid_file, #process_log_file, #process_pid_file, #read_options, #read_pid, #start, #status, #stop, #validate
Instance Method Details
#configure ⇒ Object
270 271 272 273 274 275 276 277 278 279 |
# File 'lib/seesaw/mongrel_cluster_patch.rb', line 270 def configure [ ['-C', '--config PATH', "Path to cluster configuration file", :@config_file, "config/mongrel_cluster.yml"], ['-f', '--force', "Force the shutdown.", :@force, false], ['-v', '--verbose', "Print all called commands and output.", :@verbose, false], ['', '--clean', "Call stop and start with --clean", :@clean, false], ['', '--only PORT', "Port number of cluster member", :@only, nil], ['', '--cluster NUMBER', "1 or 2 - first half or second half of cluster", :@cluster, nil] ] end |
#run ⇒ Object
281 282 283 284 285 286 |
# File 'lib/seesaw/mongrel_cluster_patch.rb', line 281 def run clustered do stop start end end |