asdf is an extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more.... i am using it with terraform... super cool and very easy to use it.
They have a good README describing how to install it but they didn't have a brew formula to make it suuuperfast in MacOS.
Well, asdf is available directly in homebrew right now. I wrote a formula for asdf and it was merged:
$ brew info asdf
asdf: stable 0.3.0
Extendable version manager with support for Ruby, Node.js, Erlang & more
/usr/local/Cellar/asdf/0.3.0 (1,740 files, 275.4MB) *
Built from source on 2017-06-04 at 09:04:49
Required: autoconf ✔, automake ✘, libtool ✔, coreutils ✔, libyaml ✔, openssl ✔, readline ✔, unixodbc ✔
Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile)
Bash completion has been installed to: