Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
RVM: Ruby Version Manager - 'rvm gemset export' - Exporting gemsets
[go: Go Back, main page]

Support
RVM is maintained by community of volunteers, report issues to RVM issues tracker.
If you can help or wish to become one of the maintainers - just start helping. You can find more RVM related projects at RVM Github organization.
Sponsors
Carbon Ads

Managing gemsets

You can not only use completely separate gemsets per application/project/etc... you can also export and load them very easily, too.

To export a gemset, assuming a project called 'teddy' running on Ruby 2.1.1:

$ rvm 2.1.1@teddy do gemset export

creates an 'teddy.gems' file.

Alternatively, if you already have a ruby selected

rvm gemset export

creates a 'default.gems' file.

You can specify the gemset filename prefix, also

rvm gemset export teddy.gems

A subtle difference with the above command is to leave off the '.gems' which will export the gems for the gemset named 'mygemsetname'

rvm gemset export teddy