Periodically emit list of deployed versions from worker

This commit is contained in:
Charles Care
2019-12-20 14:45:04 +00:00
parent 6f0ed2c501
commit 98970c16b7

View File

@@ -54,7 +54,7 @@ module Pipeline::Runtime
def list_deployed_containers
glob_pattern = "#{env_base}/*/*/current"
Dir.glob(glob_pattern).map do |match|
match.gsub(env_base, "").gsub(/current$/, "")
match.gsub("#{env_base}/", "").gsub(/\/current$/, "").gsub(/\//, ":")
end
end