class Gitlab::QA::Support::ShellCommand
def mask_secrets(input)
-
(String)
- The masked string
Parameters:
-
input
(String
) -- the string to mask
def mask_secrets(input) @mask_secrets.reduce(input) { |s, secret| s.gsub(secret, '*****') }.to_s end