Added help message for gem i webrick in un.rb
This commit is contained in:
parent
05cc58c2eb
commit
880727f037
Notes:
git
2020-12-10 18:06:56 +09:00
@ -326,7 +326,12 @@ def httpd
|
|||||||
"ServerName=NAME", "ServerSoftware=NAME",
|
"ServerName=NAME", "ServerSoftware=NAME",
|
||||||
"SSLCertificate=CERT", "SSLPrivateKey=KEY") do
|
"SSLCertificate=CERT", "SSLPrivateKey=KEY") do
|
||||||
|argv, options|
|
|argv, options|
|
||||||
require 'webrick'
|
begin
|
||||||
|
require 'webrick'
|
||||||
|
rescue LoadError
|
||||||
|
puts "webrick is not found. You may need to `gem install webrick` to install webrick."
|
||||||
|
exit
|
||||||
|
end
|
||||||
opt = options[:RequestTimeout] and options[:RequestTimeout] = opt.to_i
|
opt = options[:RequestTimeout] and options[:RequestTimeout] = opt.to_i
|
||||||
[:Port, :MaxClients].each do |name|
|
[:Port, :MaxClients].each do |name|
|
||||||
opt = options[name] and (options[name] = Integer(opt)) rescue nil
|
opt = options[name] and (options[name] = Integer(opt)) rescue nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user