Question

I am facing an issue with RVM.

The issue is, when I go into a directory - for example cucumber - RVM does not switch to the gemset that is set in the local Gemfile.

Gemfile is as follows:

ruby '1.9.3'
#ruby-gemset=cucumber

Output of rvm gemset list_all:

> gemsets for ruby-2.0.0-p247 (found in /home/kenny/.rvm/gems/ruby-2.0.0-p247)
> => (default)        
>    global
>    test
>
> gemsets for ruby-1.9.3-p0 (found in /home/kenny/.rvm/gems/ruby-1.9.3-p0)
> => (default)        
>    cucumber
>    global

Output of type rvm | head -1 :

> rvm is a function

source /home/kenny/.rvm/scripts/rvm is present in ~/.bash_profile

RVM version: rvm 1.23.14 (master)

Tested with setting rvm current 2.0.0@test, than going in to the directory but the gemset did not change.

Tried sourcing the rvm script directly as well, but did not work.

So the question is, why is it not working?

Any feedback is welcome.

Was it helpful?

Solution

You'll want to create a project (or directory) specific file per these docs: http://rvm.io/workflow/projects Those will change your ruby version and gemset upon entering the directory where that file is located.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top