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