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.
10 11 12 13 14 15 16 17 18 |
# File 'lib/buzzcore/shell_extras.rb', line 10 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
8 9 10 |
# File 'lib/buzzcore/shell_extras.rb', line 8 def result @result end |
Instance Method Details
#inspect ⇒ Object
20 21 22 |
# File 'lib/buzzcore/shell_extras.rb', line 20 def inspect "#{self.class.to_s}: #{@result.inspect}" end |