Exception: Open4::SpawnError
- Defined in:
- lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
–{{{.
-
#signals ⇒ Object
readonly
Returns the value of attribute signals.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #exitstatus ⇒ Object
-
#initialize(cmd, status) ⇒ SpawnError
constructor
A new instance of SpawnError.
Constructor Details
#initialize(cmd, status) ⇒ SpawnError
Returns a new instance of SpawnError.
91 92 93 94 95 96 97 98 99 100 |
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 91 def initialize cmd, status @cmd, @status = cmd, status @signals = {} if status.signaled? @signals['termsig'] = status.termsig @signals['stopsig'] = status.stopsig end sigs = @signals.map{|k,v| "#{ k }:#{ v.inspect }"}.join(' ') super "cmd <#{ cmd }> failed with status <#{ exitstatus.inspect }> signals <#{ sigs }>" end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
–{{{
85 86 87 |
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 85 def cmd @cmd end |
#signals ⇒ Object (readonly)
Returns the value of attribute signals.
87 88 89 |
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 87 def signals @signals end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
86 87 88 |
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 86 def status @status end |
Instance Method Details
#exitstatus ⇒ Object
88 89 90 |
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 88 def exitstatus @status.exitstatus end |