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",
|
||||
"--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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user