Write bash scripts in ruby