Method: SysCmd::Definition#input

Defined in:
lib/sys_cmd.rb

#input(data) ⇒ Object

Define data to be passed as standard input to the command



196
197
198
199
200
201
202
# File 'lib/sys_cmd.rb', line 196

def input(data)
  if @stdin_data
    @stdin_data += data.to_s
  else
    @stdin_data = data.to_s
  end
end