Class: Cluster::Stop

Inherits:
Object
  • Object
show all
Includes:
ExecBase
Defined in:
lib/mongrel_cluster/init.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, #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

#configureObject



239
240
241
242
243
244
245
246
247
# File 'lib/mongrel_cluster/init.rb', line 239

def configure
  options [
   ['-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', "Remove orphaned process if needed before stopping", :@clean, false],
   ['', '--only PORT', "Port number of cluster member", :@only, nil]
  ]
end

#runObject



249
250
251
# File 'lib/mongrel_cluster/init.rb', line 249

def run
  stop
end