Class: Rubish::UnixExecutable
- Inherits:
-
Executable
- Object
- Executable
- Rubish::UnixExecutable
- Defined in:
- lib/rubish/unix_executable.rb
Defined Under Namespace
Classes: UnixJob
Constant Summary collapse
- EIO =
Rubish::Executable::ExecutableIO
Instance Attribute Summary
Attributes inherited from Executable
Instance Method Summary collapse
-
#exec ⇒ Object
TODO catch interrupt here.
- #exec! ⇒ Object
- #exec_with(i, o, e) ⇒ Object
Methods inherited from Executable
#awk, #cd, #each, #each!, #err, #err=, #first, #head, #i, #i=, #io, #last, #map, #map!, #o, #o=, #sed, #tail
Instance Method Details
#exec ⇒ Object
TODO catch interrupt here
66 67 68 |
# File 'lib/rubish/unix_executable.rb', line 66 def exec exec!.wait end |
#exec! ⇒ Object
61 62 63 |
# File 'lib/rubish/unix_executable.rb', line 61 def exec! UnixJob.new(self) end |
#exec_with(i, o, e) ⇒ Object
70 71 72 |
# File 'lib/rubish/unix_executable.rb', line 70 def exec_with(i,o,e) raise "abstract" end |