buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (Commented) (JIRA)" <>
Subject [jira] [Commented] (BUILDR-616) Buildr development - If using rvm a default .rvmrc file would be helpful
Date Tue, 15 Nov 2011 21:15:51 GMT


Antoine Toulme commented on BUILDR-616:

This works great on Mac OS X 10.6, but there is an outstanding issue: it forces RVM to switch
to 1.9.2 even if I want to use jruby for example.

13:12:06~/w>rvm use jruby-1.6.2

info: Using jruby 1.6.2
13:12:13~/w>cd buildr

info: Using ruby 1.9.2 p0 with gemset buildr

This would impact jruby environments, and maybe environments where we want to test out 1.8.7
(for those stuck with the debian packages and such).

> Buildr development - If using rvm a default .rvmrc file would be helpful
> ------------------------------------------------------------------------
>                 Key: BUILDR-616
>                 URL:
>             Project: Buildr
>          Issue Type: Improvement
>            Reporter: Russell Teabeault
>            Assignee: Antoine Toulme
> For those users working on buildr that also use rvm a .rvmrc file might add some convenience.
> Here are the contents of a .rvmrc file that could be placed in the root of the buildr
> --------------------------------------------------------------------------------------
> #!/usr/bin/env bash
> ruby_string="${BUILDR_RUBY_VERSION:-ruby-1.9.2}"
> bundler_gem_home="vendor/bundle"
> if rvm list strings | grep -q "${ruby_string}" ; then
>   rvm use "${ruby_string}@buildr"
>   gem list | grep 'bundler' &> /dev/null
>   if [ $? -gt 0 ]; then
>     echo "Installing bundler..."
>     gem install bundler
>   fi
>   bundle install
> else
>   echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then
cd back into the project directory."
> fi
> --------------------------------------------------------------------------------------
> When cd'ing into the buildr directory and you have rvm installed this script is executed.
 It will
> 1. Set the desired version of ruby to the BUILDR_RUBY_VERSION environment variable or
1.9.2 if not set.
> 2. Check to make sure that rvm has that particular version of ruby set.
> 3. If not then it kindly tells the user how to install it.
> 4. It tells rvm to use the desired version of ruby along with a gemset called 'buildr'
> 5. It checks to see if bundler is installed and if it is not it will do a gem install
> 6. And finally it does a bundle install to pull in all of the dependencies.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message