travis-ci/travis-cookbooks — pull request #62 by mpapis (2012-05-31 01:56:10+00:00)
Title: cleaning and fixing rvm cookbooks

## cleaning and fixing rvm cookbooks

- install rvm only if script was downloaded
- fix installing default gemsets files to rvm
- move managing default gems to `global.gems` files in rvm
- use arguments for default ruby from list of all rubies
- do not install default ruby if on list of rubies
- create aliases only for installed rubies
- improved cleaning rbx mess
- by default use `-j 3` - will speed up provisioning on machines with more then 1 core
- make it compatible with rvm **1.14** (`rvm_bin`)

## `Vagrantfile` changes

Required change for `Vagrantfile` - merge `-n d19` from arguments to name:

{ :name => "rbx-head-d19", :arguments => "--1.9 --branch 2.0.testing", :using => "1.8.7" },

## Test results

Results of provisioning for **1.8.6**, **1.8.7**, **rbx-head-d19** (formatted):

```bash
vagrant@nettuno:~$ rvm all do ruby -v -S gem list
ruby 1.8.6 (2010-09-02 patchlevel 420) [i686-linux]
*** LOCAL GEMS ***
bundler (1.0.22)
rake (0.9.2)

ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
*** LOCAL GEMS ***
bundler (1.1.4)
rake (0.9.2)

rubinius 2.0.0dev (1.9.3 d1ac3763 yyyy-mm-dd JI) [i686-pc-linux-gnu]
*** LOCAL GEMS ***
bundler (1.1.4)
rake (0.9.2)
```