LoginSignup
3
4

More than 5 years have passed since last update.

rbenv-gemset

Posted at
  1. gemset create
  2. gemset init [hoge]

で 作業ディレクトリの下に .rbenv-gemsets ができあがる。

$ rbenv gemset create 2.1.1 sample
$ rbenv gemset list
2.1.1:
  sample
$ rbenv gemset active
no active gemsets
$ rbenv gemset init sample
created sample for 2.1.1
created and initialized the following gemset for use with 2.1.1
=====
sample
=====
$ rbenv gemset file
/home/hoge/.rbenv-gemsets
$ rbenv gemset active
sample global

active になっているディレクトリで bundle install すると、次のディレクトリにgemsetsができあがる。

$ vim Gemfile
$ bundle install

/home/hoge/.rbenv/versions/2.1.1/gemsets/sample/....

の下に、gemsがインストールされ、実行時も参照される。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4