I'm generating a data feed on the local machine, that I want to pipe into a remote process via Net::SSH.
Something like
echo foosball | sed 's/foo/bar/g'
Just that the echo foosball
part would be the data feed on the local machine.
What I'm NOT looking for is:
data = "foosball"
ssh.exec!("echo #{data} | sed 's/foo/bar/g'")
I really want a stream of data piped into the process in real time ;)