Method: Cmds#stream!

Defined in:
lib/cmds/stream.rb

#stream!(*args, **kwds, &io_block) ⇒ Object

stream and raise an error if exit code is not 0.

Parameters:

  • *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.

  • &io_block (nil | String | #read)

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

Raises:

  • (SystemCallError)

    if exit status is not 0.



32
33
34
35
36
37
38
# File 'lib/cmds/stream.rb', line 32

def stream! *args, **kwds, &io_block
  status = stream *args, **kwds, &io_block
  
  Cmds.check_status last_prepared_cmd, status
  
  status
end