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

master
Luka Vandervelden 2019-10-24 14:57:29 +02:00
parent 10dcca2392
commit 035420cc9a
1 changed files with 1 additions and 1 deletions

View File

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