Rbish
An erb-shellscript executor
Installation
Install it yourself as:
$ gem install rbish
Usage
Just give the filename of your shellscript to rbish.
$ rbish myscript.sh
rbish can take strings from STDIN as well.
$ rbish < myscript.sh
You can use ERB in your shellscript whereever you like.
$ cat myscript.sh
#!/bin/sh
<% (1..10).each do |i| %>
sudo arping -c 1 <%= "192.168.10.2%02d" % i %>
<% end %>
Contributing
- Fork it ( http://github.com/suu-g/rbish/fork )
- 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