Exception: Brut::CLI::SystemExecError
- Defined in:
- lib/brut/cli/error.rb
Overview
Instance Attribute Summary collapse
-
#command ⇒ String|Array
readonly
Command line invocation that caused the error.
-
#exit_status ⇒ Integer
readonly
Exit status of the command.
Instance Method Summary collapse
-
#initialize(command, exit_status) ⇒ SystemExecError
constructor
A new instance of SystemExecError.
Constructor Details
#initialize(command, exit_status) ⇒ SystemExecError
Returns a new instance of SystemExecError.
15 16 17 18 19 |
# File 'lib/brut/cli/error.rb', line 15 def initialize(command,exit_status) super("#{command} failed - exited #{exit_status}") @command = command @exit_status = exit_status end |
Instance Attribute Details
#command ⇒ String|Array (readonly)
Returns command line invocation that caused the error.
10 11 12 |
# File 'lib/brut/cli/error.rb', line 10 def command @command end |
#exit_status ⇒ Integer (readonly)
Returns exit status of the command.
12 13 14 |
# File 'lib/brut/cli/error.rb', line 12 def exit_status @exit_status end |