Closed Oliboy50 closed 8 years ago
When you set rvm_rubies
it should pick the last one as the default version.
You may want to set up a custom task to do the reload since you have a use case that goes beyond the scope of this role.
Thanks for the quick reply
After some digging, I found that my PATH env var was configured this way:
export PATH=/usr/bin:/usr/local/bin:/bin
I just had to edit it this way:
export PATH=$PATH:/usr/bin:/usr/local/bin:/bin
Even if I'd prefer the ruby binary to be located here: /usr/bin
instead of /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby
After provisionning then ssh into my VM:
I guess the ruby version 1.8.x is installed from another role (I don't know which one), it's worth noting that I use
zsh
shell, not the default one.My VM is based on Ubuntu 12.04.
How could I force
rvm reload
in order to always use the expected ruby version?Thanks a lot