Switch envs and labels to param array

This commit is contained in:
David Heinemeier Hansson
2023-01-08 16:29:44 +01:00
parent 55445ae110
commit dcb3e4d491
2 changed files with 3 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
"--restart unless-stopped",
"--name", config.service_with_version,
"-e", redact("RAILS_MASTER_KEY=#{config.master_key}"),
config.envs,
config.labels,
*config.envs,
*config.labels,
config.absolute_image
end

View File

@@ -73,6 +73,6 @@ class Mrsk::Configuration
end
def parameterize(param, hash)
hash.collect { |k, v| "#{param} #{k}=#{v}" }.join(" ")
hash.flat_map { |k, v| [ param, "#{k}=#{v}" ] }
end
end