Method: Docker::Compose::Shell#interactive
- Defined in:
- lib/docker/compose/shell.rb
#interactive ⇒ Boolean
If true, commands run in the shell will have their stdio streams tied to the parent process so the user can view their output and send input to them. Commands’ stdout is still captured normally when they are interactive.
Note that interactivity doesn’t work very well because we use popen, which uses pipes to communicate with the child process and pipes have a fixed buffer size; the displayed output tends to “lag” behind the actual program, and bytes sent to stdin may not arrive until you send a lot of them!
TODO: solve pipe buffering issues, perhaps with a pty…
22 23 24 |
# File 'lib/docker/compose/shell.rb', line 22 def interactive @interactive end |