Exception: Legion::Extensions::Velociraptor::Helpers::Cli::CommandError
- Inherits:
-
StandardError
- Object
- StandardError
- Legion::Extensions::Velociraptor::Helpers::Cli::CommandError
- Defined in:
- lib/legion/extensions/velociraptor/helpers/cli.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message, exit_status: nil, stderr: nil, stdout: nil) ⇒ CommandError
constructor
A new instance of CommandError.
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(, exit_status: nil, stderr: nil, stdout: nil) @exit_status = exit_status @stderr = stderr @stdout = stdout super() end |
Instance Attribute Details
#exit_status ⇒ Object (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 |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
17 18 19 |
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 17 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
17 18 19 |
# File 'lib/legion/extensions/velociraptor/helpers/cli.rb', line 17 def stdout @stdout end |