Sha256: 0e12331631d68b0883e31f10625028447ab8dfa966b945d527c953e8194f2a12
Contents?: true
Size: 263 Bytes
Versions: 2
Compression:
Stored size: 263 Bytes
Contents
module ProcessHelper def run(stdin, *args) if stdin.kind_of?(Array) stdin = stdin.join("\n") end command = args.shift process = Ru::Process.new({ command: command, args: args, stdin: stdin }) process.run end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ru-0.0.3 | spec/support/process_helper.rb |
ru-0.0.2 | spec/support/process_helper.rb |