提交 8468fb1c 编写于 作者: K Kasper Timm Hansen

Use exist? instead of deprecated exists?

上级 2d00aa7a
......@@ -34,7 +34,7 @@ def option_parser(options)
opts.on("-P", "--pid=pid", String,
"Specifies the PID file.",
"Default: tmp/pids/server.pid") { |v| options[:pid] = v }
opts.on("-C", "--[no-]dev-caching",
opts.on("-C", "--[no-]dev-caching",
"Specifies whether to perform caching in development.",
"true or false") { |v| options[:caching] = v }
......@@ -121,7 +121,7 @@ def create_cache_file
end
def delete_cache_file
FileUtils.rm("tmp/caching-dev.txt") if File.exists?("tmp/caching-dev.txt")
FileUtils.rm("tmp/caching-dev.txt") if File.exist?("tmp/caching-dev.txt")
end
def create_tmp_directories
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册