Allow "clear" only env configuration

This commit is contained in:
Adam Miribyan
2023-01-28 17:19:07 +01:00
parent c23928348b
commit afefd32379
2 changed files with 9 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ module Mrsk::Utils
if (secrets = env["secret"]).present?
argumentize("-e", secrets.to_h { |key| [ key, ENV.fetch(key) ] }, redacted: true) + argumentize("-e", env["clear"])
else
argumentize "-e", env
argumentize "-e", env.fetch("clear", env)
end
end