0

I'm new to the concept of gemset and I'm trying to create a new gemset for my existing project.

I've installed the plugin and followed the steps as mentioned here

https://github.com/jf/rbenv-gemset

Can anyone tell me what is the exact way to use the gemset in an existing project?

Dynamo
  • 67
  • 11
  • What do you really want to acheive by using gemsets? IMHO there is very few reasons outside of legacy non-bundler projects to use gemsets. – max Jan 21 '21 at 17:10
  • I'm trying to update my application and want to have different gemsets with different gem versions. – Dynamo Jan 22 '21 at 06:41
  • That's what bundler does for you anyways. – max Jan 22 '21 at 10:14

1 Answers1

0

Gemsets are nice if you work on multiple projects and don't want to pollute/break your global gemset when you install your various gems.

You can create a local file in your project dir like the docs say:

echo "my-cool-project" > .rbenv-gemsets

Now when you switch to that dir your project will use the gemset called my-cool-project

Clintm
  • 4,505
  • 3
  • 41
  • 54