• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ruby-106/ruby/lib/

Lines Matching refs:opts

39   #   Open3.popen3([env,] cmd... [, opts]) {|stdin, stdout, stderr, wait_thr|
47 # stdin, stdout, stderr, wait_thr = Open3.popen3([env,] cmd... [, opts])
62 # If the last parameter, opts, is a Hash, it is recognized as an option for Process.spawn.
84 opts = cmd.pop.dup
86 opts = {}
90 opts[:in] = in_r
94 opts[:out] = out_w
97 opts[:err] = err_w
99 popen_run(cmd, opts, [in_r, out_w, err_w], [in_w, out_r, err_r], &block)
108 # Open3.popen2([env,] cmd... [, opts]) {|stdin, stdout, wait_thr|
116 # stdin, stdout, wait_thr = Open3.popen2([env,] cmd... [, opts])
145 opts = cmd.pop.dup
147 opts = {}
151 opts[:in] = in_r
155 opts[:out] = out_w
157 popen_run(cmd, opts, [in_r, out_w], [in_w, out_r], &block)
166 # Open3.popen2e([env,] cmd... [, opts]) {|stdin, stdout_and_stderr, wait_thr|
174 # stdin, stdout_and_stderr, wait_thr = Open3.popen2e([env,] cmd... [, opts])
194 opts = cmd.pop.dup
196 opts = {}
200 opts[:in] = in_r
204 opts[[:out, :err]] = out_w
206 popen_run(cmd, opts, [in_r, out_w], [in_w, out_r], &block)
210 def popen_run(cmd, opts, child_io, parent_io) # :nodoc:
211 pid = spawn(*cmd, opts)
232 # stdout_str, stderr_str, status = Open3.capture3([env,] cmd... [, opts])
234 # The arguments env, cmd and opts are passed to Open3.popen3 except
235 # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
237 # If opts[:stdin_data] is specified, it is sent to the command's standard input.
239 # If opts[:binmode] is true, internal pipes are set to binary mode.
271 opts = cmd.pop.dup
273 opts = {}
276 stdin_data = opts.delete(:stdin_data) || ''
277 binmode = opts.delete(:binmode)
279 popen3(*cmd, opts) {|i, o, e, t|
296 # stdout_str, status = Open3.capture2([env,] cmd... [, opts])
298 # The arguments env, cmd and opts are passed to Open3.popen3 except
299 # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
301 # If opts[:stdin_data] is specified, it is sent to the command's standard input.
303 # If opts[:binmode] is true, internal pipes are set to binary mode.
325 opts = cmd.pop.dup
327 opts = {}
330 stdin_data = opts.delete(:stdin_data) || ''
331 binmode = opts.delete(:binmode)
333 popen2(*cmd, opts) {|i, o, t|
348 # stdout_and_stderr_str, status = Open3.capture2e([env,] cmd... [, opts])
350 # The arguments env, cmd and opts are passed to Open3.popen3 except
351 # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
353 # If opts[:stdin_data] is specified, it is sent to the command's standard input.
355 # If opts[:binmode] is true, internal pipes are set to binary mode.
364 opts = cmd.pop.dup
366 opts = {}
369 stdin_data = opts.delete(:stdin_data) || ''
370 binmode = opts.delete(:binmode)
372 popen2e(*cmd, opts) {|i, oe, t|
388 # Open3.pipeline_rw(cmd1, cmd2, ... [, opts]) {|first_stdin, last_stdout, wait_threads|
392 # first_stdin, last_stdout, wait_threads = Open3.pipeline_rw(cmd1, cmd2, ... [, opts])
402 # [env, commandline, opts] command line string which is passed to a shell
403 # [env, cmdname, arg1, ..., opts] command name and one or more arguments (no shell)
404 # [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
406 # Note that env and opts are optional, as Process.spawn.
409 # +opts+, the last hash element of the array and
429 opts = cmds.pop.dup
431 opts = {}
435 opts[:in] = in_r
439 opts[:out] = out_w
441 pipeline_run(cmds, opts, [in_r, out_w], [in_w, out_r], &block)
448 # Open3.pipeline_r(cmd1, cmd2, ... [, opts]) {|last_stdout, wait_threads|
452 # last_stdout, wait_threads = Open3.pipeline_r(cmd1, cmd2, ... [, opts])
461 # [env, commandline, opts] command line string which is passed to a shell
462 # [env, cmdname, arg1, ..., opts] command name and one or more arguments (no shell)
463 # [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
465 # Note that env and opts are optional, as Process.spawn.
485 opts = cmds.pop.dup
487 opts = {}
491 opts[:out] = out_w
493 pipeline_run(cmds, opts, [out_w], [out_r], &block)
500 # Open3.pipeline_w(cmd1, cmd2, ... [, opts]) {|first_stdin, wait_threads|
504 # first_stdin, wait_threads = Open3.pipeline_w(cmd1, cmd2, ... [, opts])
513 # [env, commandline, opts] command line string which is passed to a shell
514 # [env, cmdname, arg1, ..., opts] command name and one or more arguments (no shell)
515 # [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
517 # Note that env and opts are optional, as Process.spawn.
527 opts = cmds.pop.dup
529 opts = {}
533 opts[:in] = in_r
536 pipeline_run(cmds, opts, [in_r], [in_w], &block)
544 # Open3.pipeline_start(cmd1, cmd2, ... [, opts]) {|wait_threads|
548 # wait_threads = Open3.pipeline_start(cmd1, cmd2, ... [, opts])
556 # [env, commandline, opts] command line string which is passed to a shell
557 # [env, cmdname, arg1, ..., opts] command name and one or more arguments (no shell)
558 # [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
560 # Note that env and opts are optional, as Process.spawn.
586 opts = cmds.pop.dup
588 opts = {}
592 pipeline_run(cmds, opts, [], [], &block)
594 ts, = pipeline_run(cmds, opts, [], [])
605 # status_list = Open3.pipeline(cmd1, cmd2, ... [, opts])
612 # [env, commandline, opts] command line string which is passed to a shell
613 # [env, cmdname, arg1, ..., opts] command name and one or more arguments (no shell)
614 # [env, [cmdname, argv0], arg1, ..., opts] command name and arguments including argv[0] (no shell)
616 # Note that env and opts are optional, as Process.spawn.
654 opts = cmds.pop.dup
656 opts = {}
659 pipeline_run(cmds, opts, [], []) {|ts|