Method: Coque::Cmd#get_default_fds
- Defined in:
- lib/coque/cmd.rb
#get_default_fds ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/coque/cmd.rb', line 24 def get_default_fds stdin = if self.stdin self.stdin else inr, inw = IO.pipe inw.close inr end stdoutr, stdoutw = if self.stdout [self.stdout, self.stdout] else IO.pipe end [stdin, stdoutr, stdoutw] end |