Skip to content

Instantly share code, notes, and snippets.

@jeremyvdw
Created November 7, 2013 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyvdw/7351993 to your computer and use it in GitHub Desktop.
Save jeremyvdw/7351993 to your computer and use it in GitHub Desktop.
Using chruby with buildbox.io
if [[ -e /usr/local/share/chruby ]]; then
# Load chruby
source '/usr/local/share/chruby/chruby.sh'
# Automatically switch rubies
source '/usr/local/share/chruby/auto.sh'
# Set a default ruby if a .ruby-version file exists in the home dir
if [[ -f ~/.ruby-version ]]; then
chruby $(cat ~/.ruby-version)
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment