Exception: Command::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Command::Error
- Defined in:
- lib/prick/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.
10 11 12 13 14 15 16 17 |
# File 'lib/prick/local/command.rb', line 10 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.
4 5 6 |
# File 'lib/prick/local/command.rb', line 4 def cmd @cmd end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/prick/local/command.rb', line 5 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
8 9 10 |
# File 'lib/prick/local/command.rb', line 8 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
6 7 8 |
# File 'lib/prick/local/command.rb', line 6 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
7 8 9 |
# File 'lib/prick/local/command.rb', line 7 def stdout @stdout end |