Sha256: 8605c26aaf99a35f1538c5ac1298fab2bec529d955aa21282e529c800488f48d
Contents?: true
Size: 214 Bytes
Versions: 5
Compression:
Stored size: 214 Bytes
Contents
# encoding: utf-8 require 'tty-command' cmd = TTY::Command.new cmd.run("i=0; while true; do i=$[$i+1]; echo 'hello '$i; sleep 1; done") do |out, err| if out =~ /.*5.*/ raise ArgumentError, 'BOOM' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.8.1 | examples/output.rb |
tty-command-0.8.0 | examples/output.rb |
tty-command-0.7.0 | examples/output.rb |
tty-command-0.6.0 | examples/output.rb |
tty-command-0.5.0 | examples/output.rb |