diff --git a/lib/mrsk/utils.rb b/lib/mrsk/utils.rb new file mode 100644 index 00000000..75e2f226 --- /dev/null +++ b/lib/mrsk/utils.rb @@ -0,0 +1,8 @@ +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