Files
rz-pipe/ruby/examples/test.rb
Aswin C e8e6dd6e97 Add rz-pipe support for Ruby (#6)
* Add rz-pipe support for Ruby

Also add Ruby to the list of supported languages on the README

* Add a Makefile and update the CI for Ruby

* Fix a typo in the examples
2021-01-20 15:34:11 +08:00

15 lines
210 B
Ruby

#!/usr/bin/env ruby
# author [email protected]
require '../rzpipe'
begin
rzp = RzPipe.new
rescue Exception => e
rzp = RzPipe.new '/bin/ls'
end
puts rzp.cmd 'a'
puts rzp.cmd 'pd 10 main'
rzp.quit