|
|
@ -18,16 +18,7 @@ Rbenv s'utilise le plus souvent au sein d'un compte utilisateur non administrate |
|
|
|
|
|
|
|
On bascule ensuite dans l'environnement de l'utilisateur. |
|
|
|
|
|
|
|
On configure Rubygems dans le fichier `~/.gemrc` : |
|
|
|
|
|
|
|
~~~ |
|
|
|
--- |
|
|
|
:sources: |
|
|
|
- https://rubygems.org |
|
|
|
install: --no-document |
|
|
|
update: --no-document |
|
|
|
gem: --no-document |
|
|
|
~~~ |
|
|
|
### Minimum |
|
|
|
|
|
|
|
On clone le dépôt Git de Rbenv : |
|
|
|
|
|
|
@ -35,25 +26,37 @@ On clone le dépôt Git de Rbenv : |
|
|
|
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv |
|
|
|
~~~ |
|
|
|
|
|
|
|
On installe quelques plugins : |
|
|
|
On configure notre shell (`~/.profile`) pour initialiser Rbenv, en ajoutant ces 2 lignes : |
|
|
|
|
|
|
|
~~~{.bash} |
|
|
|
export PATH="~/.rbenv/bin:$PATH" |
|
|
|
eval "$(rbenv init -)" |
|
|
|
~~~ |
|
|
|
|
|
|
|
### Optionnel |
|
|
|
|
|
|
|
On peut installer quelques plugins : |
|
|
|
|
|
|
|
~~~ |
|
|
|
$ mkdir ~/.rbenv/plugins |
|
|
|
$ cd ~/.rbenv/plugins |
|
|
|
$ git clone https://github.com/rbenv/rbenv-vars.git |
|
|
|
$ git clone https://github.com/rbenv/ruby-build.git |
|
|
|
$ git clone https://github.com/rbenv/rbenv-default-gems.git |
|
|
|
$ git clone https://github.com/rbenv/rbenv-installer.git |
|
|
|
$ git clone https://github.com/rkh/rbenv-update.git |
|
|
|
$ git clone https://github.com/rkh/rbenv-whatis.git |
|
|
|
$ git clone https://github.com/rkh/rbenv-use.git |
|
|
|
$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build |
|
|
|
$ git clone https://github.com/rbenv/rbenv-installer.git ~/.rbenv/plugins/rbenv-installer |
|
|
|
$ git clone https://github.com/rkh/rbenv-update.git ~/.rbenv/plugins/rbenv-update |
|
|
|
$ git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars |
|
|
|
$ git clone https://github.com/rbenv/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems |
|
|
|
$ git clone https://github.com/rkh/rbenv-whatis.git ~/.rbenv/plugins/rbenv-whatis |
|
|
|
$ git clone https://github.com/rkh/rbenv-use.git ~/.rbenv/plugins/rbenv-use |
|
|
|
~~~ |
|
|
|
|
|
|
|
On configure notre shell (`~/.profile`) pour initialiser Rbenv, en ajoutant ces 2 lignes : |
|
|
|
On peut configurer Rubygems dans le fichier `~/.gemrc` pour limiter la quantité de documentation installée pour les gems : |
|
|
|
|
|
|
|
~~~{.bash} |
|
|
|
export PATH="~/.rbenv/bin:$PATH" |
|
|
|
eval "$(rbenv init -)" |
|
|
|
~~~ |
|
|
|
--- |
|
|
|
:sources: |
|
|
|
- https://rubygems.org |
|
|
|
install: --no-document |
|
|
|
update: --no-document |
|
|
|
gem: --no-document |
|
|
|
~~~ |
|
|
|
|
|
|
|
## Utilisation |
|
|
|