method
validate
v2.1.0 -
Show latest stable
- Class:
Rails::MongrelServer::Stop
validate()public
No documentation available.
# File railties/lib/rails/mongrel_server/commands.rb, line 292
def validate
@cwd = File.expand_path(@cwd)
valid_dir? @cwd, "Invalid path to change to during daemon mode: #@cwd"
Dir.chdir @cwd
valid_exists? @pid_file, "PID file #@pid_file does not exist. Not running?"
return @valid
end