Files
kamal/lib/mrsk/utils.rb
David Heinemeier Hansson b96d760b9b Add the utils
2023-01-15 13:23:20 +01:00

9 lines
306 B
Ruby

module Mrsk::Utils
extend self
# 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