Method: Cmds#stream

Defined in:
lib/cmds/stream.rb

#stream(*args, **kwds, &io_block) ⇒ Fixnum

stream a command.

Parameters:

  • &io_block (nil | String | #read)

    string or readable IO-like object to use as input to the command.

  • *args (Array<Object>)

    positional parameters to append to those in @args for rendering into the command string.

  • **kwds (Hash{Symbol => Object})

    keyword parameters that override those in @kwds for rendering into the command string.

Returns:

  • (Fixnum)

    command exit status.



13
14
15
16
17
18
19
20
# File 'lib/cmds/stream.rb', line 13

def stream *args, **kwds, &io_block
  logger.trace "entering Cmds#stream",
    args: args,
    kwds: kwds,
    io_block: io_block
  
  spawn *args, **kwds, &io_block
end