Class: Rubish::UnixExecutable

Inherits:
Executable show all
Defined in:
lib/rubish/unix_executable.rb

Direct Known Subclasses

Command, Pipe

Defined Under Namespace

Classes: UnixJob

Constant Summary collapse

EIO =
Rubish::Executable::ExecutableIO

Instance Attribute Summary

Attributes inherited from Executable

#working_directory

Instance Method Summary collapse

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

#execObject

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