Automate Mac iTerm Terminal with Ruby