An enhanced version of system() that allows the capture of stdout, stderr & also feeding data to stdin.
The main method is FunkySystem.run(cmd, stdin).
e.g.
result = FunkySystem.run(["bc"], "3+2\n4+23\nquit") result.stdout # => "5\n27\n"
Add this line to your application's Gemfile:
gem 'funkysystem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install funkysystem
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request