sargas
sargas

Reputation: 6180

RVM use gemset not creating .ruby-version and .ruby-gemset

Facts

  1. I created project1 and ran the following code:

    rvm use ruby-2.1.0@project-gemset

  2. Then I moved out of the directory and created project2, running the same rvm code.

  3. When I run rvm gemset list I see that it is using the same gemset as project1.

Question

Why aren't .ruby-version and .ruby-gemset being created for project2? I can't see them when I run a ls -a on project2's path.

Thank you in advance.

Upvotes: 0

Views: 150

Answers (1)

mpapis
mpapis

Reputation: 53188

to create the files you need to add flag:

rvm use ruby-2.1.0@project-gemset --ruby-version

or explicitly create it:

rvm use ruby-2.1.0@project-gemset
rvm rvmrc create .ruby-version

Upvotes: 3

Related Questions