Class: JCluster::Restart

Inherits:
Object
  • Object
show all
Includes:
ExecBase
Defined in:
lib/mongrel_jcluster/init.rb

Instance Method Summary collapse

Methods included from ExecBase

#read_options, #start, #stop, #validate

Instance Method Details

#configureObject



113
114
115
116
117
118
119
# File 'lib/mongrel_jcluster/init.rb', line 113

def configure 
  options [ 
    ['-C', '--config PATH', "Path to cluster configuration file", :@config_file, "config/mongrel_jcluster.yml"],
    ['-f', '--force', "Force the shutdown.", :@force, false],
    ['-v', '--verbose', "Print all called commands and output.", :@verbose, false]       
  ]
end

#runObject



121
122
123
124
# File 'lib/mongrel_jcluster/init.rb', line 121

def run
  stop
  start
end