Nerian
Nerian

Reputation: 16197

RVM: Create a gemset for whatever ruby is currently running

I want to use per project gemsets. But I don't want to specify the ruby version.

Something like:

#.rvmrc
   rvm --create use  "@project"

But this give me the following error:

error: Unknown ruby interpreter string component: 'ruby 1.9.2 p136'
info: Now using system ruby.

Is there a way to do what i want?

Upvotes: 0

Views: 601

Answers (1)

Kamil Sarna
Kamil Sarna

Reputation: 6311

I'm not sure if that's the case but perhaps rvm --create use doesn't support params without ruby version.

#.rvmrc
rvm gemset create "project"
rvm gemset use "project"

I didn't check this, just saw at: http://rvm.beginrescueend.com/gemsets/creating/

Upvotes: 1

Related Questions