Method: Gitlab::QA::Support::ShellCommand#initialize

Defined in:
lib/gitlab/qa/support/shell_command.rb

#initialize(command = nil, stdin_data: nil, mask_secrets: nil, stream_output: false) ⇒ ShellCommand

Shell command

Parameters:

  • command (<String, Array>) (defaults to: nil)
  • mask_secrets (<String, Array>) (defaults to: nil)
  • stream_output (Boolean) (defaults to: false)

    stream command output to stdout directly instead of logger



19
20
21
22
23
24
25
26
# File 'lib/gitlab/qa/support/shell_command.rb', line 19

def initialize(command = nil, stdin_data: nil, mask_secrets: nil, stream_output: false)
  @command = command
  @mask_secrets = Array(mask_secrets)
  @stream_output = stream_output
  @output = []
  @logger = Runtime::Logger.logger
  @stdin_data = stdin_data
end