def apply_replacements(output)
      replace_patterns.reduce(output) do |output, replacement_pattern|
        replacement_pattern.replace(output)
      end
    end
def apply_replacements(output)
      replace_patterns.reduce(output) do |output, replacement_pattern|
        replacement_pattern.replace(output)
      end
    end
Apply the configured replacements to the output.

 @param  [String] output
         The output, which was emitted while execution.

 @return [String]
         The redacted output.