Sha256: 85cee89c8cf7503629c7bc563b1782d62107bc622c746b70f17c4ec458822504
Contents?: true
Size: 239 Bytes
Versions: 3
Compression:
Stored size: 239 Bytes
Contents
require "./lib/kommando" calls = [] k = Kommando.new("ping -c 2 -i 0.2 127.0.0.1", { output: false }) k.out.every(/from (\d+\.\d+\.\d+\.\d+):/) do |m| calls << m[1] end k.run raise "err" unless calls == ["127.0.0.1", "127.0.0.1"]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | examples/every_ping.rb |
kommando-0.1.1 | examples/every_ping.rb |
kommando-0.1.0 | examples/every_ping.rb |