Write bash scripts with ruby