Switch envs and labels to param array
This commit is contained in:
@@ -15,8 +15,8 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
|||||||
"--restart unless-stopped",
|
"--restart unless-stopped",
|
||||||
"--name", config.service_with_version,
|
"--name", config.service_with_version,
|
||||||
"-e", redact("RAILS_MASTER_KEY=#{config.master_key}"),
|
"-e", redact("RAILS_MASTER_KEY=#{config.master_key}"),
|
||||||
config.envs,
|
*config.envs,
|
||||||
config.labels,
|
*config.labels,
|
||||||
config.absolute_image
|
config.absolute_image
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,6 @@ class Mrsk::Configuration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parameterize(param, hash)
|
def parameterize(param, hash)
|
||||||
hash.collect { |k, v| "#{param} #{k}=#{v}" }.join(" ")
|
hash.flat_map { |k, v| [ param, "#{k}=#{v}" ] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user