Exception: POpen4::ExecuteError
- Inherits:
-
StandardError
- Object
- StandardError
- POpen4::ExecuteError
- Defined in:
- lib/buzzcore/shell_extras.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
,:stderr,:stdout,:exitcode,:pid.
Instance Method Summary collapse
-
#initialize(aArg) ⇒ ExecuteError
constructor
A new instance of ExecuteError.
- #inspect ⇒ Object
Constructor Details
#initialize(aArg) ⇒ ExecuteError
Returns a new instance of ExecuteError.
9 10 11 12 13 14 15 16 17 |
# File 'lib/buzzcore/shell_extras.rb', line 9 def initialize(aArg) if aArg.is_a? Hash msg = ([aArg[:stderr],aArg[:stdout],"Error #{aArg[:exitcode].to_s}"].find {|i| i && !i.empty?}) super(msg) @result = aArg else super(aArg) end end |
Instance Attribute Details
#result ⇒ Object (readonly)
,:stderr,:stdout,:exitcode,:pid
7 8 9 |
# File 'lib/buzzcore/shell_extras.rb', line 7 def result @result end |
Instance Method Details
#inspect ⇒ Object
19 20 21 |
# File 'lib/buzzcore/shell_extras.rb', line 19 def inspect "#{self.class.to_s}: #{@result.inspect}" end |