gen-config: port() gets its output chomp’d.
parent
10dcca2392
commit
035420cc9a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue