Add the utils
This commit is contained in:
8
lib/mrsk/utils.rb
Normal file
8
lib/mrsk/utils.rb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user