Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (27 sloc) 1.426 kb
d1051e5 @jamis simplified installation instructions
jamis authored
1 # rbenv-gemset
7692416 @jamis add a README
jamis authored
2
3 rbenv-gemset is an extension for the [rbenv][rbenv] ruby version manager that
4 allows you to use "gemsets", sandboxed collections of gems. This lets you have
5 multiple collections of gems installed in different sandboxes, and specify (on
6 a per-application basis) which sets of gems should be used.
7
8
d1051e5 @jamis simplified installation instructions
jamis authored
9 ## Installation
7692416 @jamis add a README
jamis authored
10
d1051e5 @jamis simplified installation instructions
jamis authored
11 1. Clone rbenv-gemset to the `$HOME/.rbenv/plugins` directory:
7692416 @jamis add a README
jamis authored
12
e37836b @jamis fiddle with markdown
jamis authored
13 $ mkdir -p ~/.rbenv/plugins
14 $ cd ~/.rbenv/plugins
15 $ git clone git://github.com/jamis/rbenv-gemset.git
7692416 @jamis add a README
jamis authored
16
d1051e5 @jamis simplified installation instructions
jamis authored
17 2. There is no step 2!
7692416 @jamis add a README
jamis authored
18
19
d1051e5 @jamis simplified installation instructions
jamis authored
20 ## Usage
7692416 @jamis add a README
jamis authored
21
22 In your application directory, create a file named `.rbenv-gemsets` and put the
23 names of the gemsets you want to use in it, separated by whitespace. The first
24 gemset in the list will be the primary gemset, where new gems will be
25 installed.
26
e37836b @jamis fiddle with markdown
jamis authored
27 $ echo my-gemset > .rbenv-gemsets
7692416 @jamis add a README
jamis authored
28
29 Now, all commands involving gems will use the gemsets you specified.
30
31 The gemset plugin will cause rbenv to search for the `.rbenv-gemsets` file in
32 the current directory, as well as in all ancestor directories, so as long
33 as there is an `.rbenv-gemsets` file at or above the current directory.
34
a50c8da @tmc Added RBENV_GEMSET_FILE env var support.
tmc authored
35 Alternatively, you can set the RBENV_GEMSET_FILE environment variable to the
36 absolute path of the gemset file.
37
7692416 @jamis add a README
jamis authored
38
d1051e5 @jamis simplified installation instructions
jamis authored
39 ## License
7692416 @jamis add a README
jamis authored
40
41 This code is placed in the public domain by the author, Jamis Buck. Use it as
42 you wish. Please prefer good over evil.
43
44
45 [rbenv]: http://github.com/sstephenson/rbenv
Something went wrong with that request. Please try again.