1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

clean up dsl.rb

This commit is contained in:
Chulki Lee 2015-03-13 17:18:15 -07:00
parent 4b2264f31c
commit 67fa78e6c5

View file

@ -36,13 +36,10 @@ module Puma
@options[:control_url] = url
if opts
if tok = opts[:auth_token]
@options[:control_auth_token] = tok
end
auth_token = opts[:auth_token]
@options[:control_auth_token] = auth_token if auth_token
if opts[:no_token]
@options[:control_auth_token] = :none
end
@options[:control_auth_token] = :none if opts[:no_token]
end
end
@ -141,12 +138,7 @@ module Puma
end
def ssl_bind(host, port, opts)
o = [
"cert=#{opts[:cert]}",
"key=#{opts[:key]}"
]
@options[:binds] << "ssl://#{host}:#{port}?#{o.join('&')}"
@options[:binds] << "ssl://#{host}:#{port}?cert=#{opts[:cert]}&key=#{opts[:key]}"
end
# Use +path+ as the file to store the server info state. This is