# File lib/openshift-origin-node/utils/sanitize.rb, line 4 def self.sanitize_credentials(arg) arg.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '') .gsub(/(passwo?r?d\s*[:=]+\s*)\S+/, '\1[HIDDEN]') .gsub(/(usern?a?m?e?\s*[:=]+\s*)\S+/,'\1[HIDDEN]') end
Generated with the Darkfish Rdoc Generator 2.