evaluate()’s substitutions are now global.
parent
73abf06a65
commit
5b864dcb58
|
@ -261,7 +261,7 @@ class Service
|
||||||
ENV["SERVICE_ENVIRONMENT_TYPE"] = @environment.type.to_s
|
ENV["SERVICE_ENVIRONMENT_TYPE"] = @environment.type.to_s
|
||||||
end
|
end
|
||||||
private def evaluate(string)
|
private def evaluate(string)
|
||||||
string.sub /%{[a-zA-Z]+}/ do |match|
|
string.gsub /%{[a-zA-Z]+}/ do |match|
|
||||||
match = match[2..match.size-2]
|
match = match[2..match.size-2]
|
||||||
|
|
||||||
if match.downcase == "environment"
|
if match.downcase == "environment"
|
||||||
|
|
Loading…
Reference in New Issue