Exception: Command::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Command::Error
- Defined in:
- lib/local/command.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(cmd, status, stdin, stdout, stderr) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(cmd, status, stdin, stdout, stderr) ⇒ Error
Returns a new instance of Error.
15 16 17 18 19 20 21 22 |
# File 'lib/local/command.rb', line 15 def initialize(cmd, status, stdin, stdout, stderr) super(stderr.join("\n")) @cmd = cmd @status = status @stdin = stdin @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
9 10 11 |
# File 'lib/local/command.rb', line 9 def cmd @cmd end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/local/command.rb', line 10 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
13 14 15 |
# File 'lib/local/command.rb', line 13 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
11 12 13 |
# File 'lib/local/command.rb', line 11 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
12 13 14 |
# File 'lib/local/command.rb', line 12 def stdout @stdout end |