gen-config: port() gets its output chomp’d.

This commit is contained in:
Luka Vandervelden 2019-10-24 14:57:29 +02:00
parent 10dcca2392
commit 035420cc9a

View File

@ -69,7 +69,7 @@ class Configure::Context
options["environment"] = ENV["ENVIRONMENT"]? || ""
options["port"] = Crinja.function do
service = (arguments.varargs[0]? || "").to_s.gsub /\//, ':'
`get-port #{service}`
`get-port #{service}`.chomp
end
options["random_password"] = Crinja.function do
id = (arguments.varargs[0]? || options["id"]).to_s