Handy chruby commands

July 30, 2014

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?

$ chruby

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.


Discussion, links, and tweets

My name is Deon Heyns and I am a developer learning things and documenting them in realtime. Python, Ruby, Scala, .NET, and Groovy are all languages I have written code in. I appeared in the New York Post once. I host my code up at GitHub and Bitbucket so have a look at my code, fork it and send those pull requests.

comments powered by Disqus