mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
An extra check on prefix to make sure it's perfect.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@304 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
fb1226bee3
commit
dadaaff8e3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class Start < GemPlugin::Plugin "/commands"
|
|||
# change there to start, then we'll have to come back after daemonize
|
||||
Dir.chdir(@cwd)
|
||||
|
||||
valid? @prefix[-1].chr != "/", "Don't put / at the end of your prefix" if @prefix
|
||||
valid?(@prefix[0].chr == "/" && @prefix[-1].chr != "/", "Prefix must begin with / and not end in /") if @prefix
|
||||
valid_dir? File.dirname(@log_file), "Path to log file not valid: #@log_file"
|
||||
valid_dir? File.dirname(@pid_file), "Path to pid file not valid: #@pid_file"
|
||||
valid_dir? @docroot, "Path to docroot not valid: #@docroot"
|
||||
|
|
Loading…
Reference in a new issue