Avoid [ActiveSupport::OrderedOptions#dig]
The implementation has been updated upstream[^1] to expect symbolized
keys. MRSK relies heavily on the fact that nested keys are strings, so
we're removing existing uses of `#dig`.
[^1]: 5c15b586aa
This commit is contained in:
@@ -55,7 +55,7 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
|
|||||||
|
|
||||||
private
|
private
|
||||||
def cmd_option_args
|
def cmd_option_args
|
||||||
if args = config.raw_config.dig(:traefik, "args")
|
if args = config.traefik["args"]
|
||||||
optionize args
|
optionize args
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
@@ -63,6 +63,6 @@ class Mrsk::Commands::Traefik < Mrsk::Commands::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def host_port
|
def host_port
|
||||||
config.raw_config.dig(:traefik, "host_port") || CONTAINER_PORT
|
config.traefik["host_port"] || CONTAINER_PORT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ class Mrsk::Configuration
|
|||||||
}.compact
|
}.compact
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def traefik
|
||||||
|
raw_config.traefik || {}
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
# Will raise ArgumentError if any required config keys are missing
|
# Will raise ArgumentError if any required config keys are missing
|
||||||
|
|||||||
Reference in New Issue
Block a user