Redact build args (since they are often tokens)

This commit is contained in:
David Heinemeier Hansson
2023-01-15 13:15:14 +01:00
parent bb8a8d3399
commit 760a87fe06
4 changed files with 6 additions and 10 deletions

View File

@@ -18,10 +18,5 @@ module Mrsk::Commands
def docker(*args)
args.compact.unshift :docker
end
# Copied from SSHKit::Backend::Abstract#redact to be available inside Commands classes
def redact(arg) # Used in execute_command to hide redact() args a user passes in
arg.to_s.extend(SSHKit::Redaction) # to_s due to our inability to extend Integer, etc
end
end
end