Exception: Legion::Extensions::Velociraptor::Helpers::Cli::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/legion/extensions/velociraptor/helpers/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_status: nil, stderr: nil, stdout: nil) ⇒ CommandError

Returns a new instance of CommandError.



19
20
21
22
23
24
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 19

def initialize(message, exit_status: nil, stderr: nil, stdout: nil)
  @exit_status = exit_status
  @stderr = stderr
  @stdout = stdout
  super(message)
end

Instance Attribute Details

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



17
18
19
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 17

def exit_status
  @exit_status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



17
18
19
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 17

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



17
18
19
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 17

def stdout
  @stdout
end