Handy chruby commands
I previously wrote about some handy rvm commands, thereafter I found out that there are a few more Ruby managers. It seems to me that the main Ruby version managers are rvm, chruby and rbenv.
So let’s have a look at chruby. Firstly if you have homebrew installed you can easily get chruby up and running. All you need to do is
brew install chruby
What versions of Ruby do you have?
This returns a list similar to
$ chruby * ruby-2.0.0-p195 ruby-2.0.0-p481 ruby-2.1.0
Need to select a particular Ruby to use?
$ chruby 1.9.3
This will switch to ruby-1.9.3.
When needing to work or manage gemsets it seems that [bundler] is the answer. Chruby seems to be very focused on managing rubies and is not a full featured toolbelt like rvm.
I intend to follow up tomorrow with another post on Chruby, as I believe there is more to it than what I discovered tonight.