Install rbenv and ruby-build via Homebrew.
Create bash_profile.sh script.