Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28B0390E8 for ; Wed, 16 Nov 2011 23:34:13 +0000 (UTC) Received: (qmail 924 invoked by uid 500); 16 Nov 2011 23:34:13 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 748 invoked by uid 500); 16 Nov 2011 23:34:12 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 679 invoked by uid 500); 16 Nov 2011 23:34:12 -0000 Delivered-To: apmail-incubator-buildr-commits@incubator.apache.org Received: (qmail 676 invoked by uid 99); 16 Nov 2011 23:34:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 23:34:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2011 23:34:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 854FA8927E for ; Wed, 16 Nov 2011 23:33:51 +0000 (UTC) Date: Wed, 16 Nov 2011 23:33:51 +0000 (UTC) From: "Antoine Toulme (Commented) (JIRA)" To: buildr-commits@incubator.apache.org Message-ID: <1042597523.36745.1321486431547.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1111817682.31599.1321376091550.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (BUILDR-616) Buildr development - If using rvm a default .rvmrc file would be helpful MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BUILDR-616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151632#comment-13151632 ] Antoine Toulme commented on BUILDR-616: --------------------------------------- OK, tried that and it works well. Thanks! > Buildr development - If using rvm a default .rvmrc file would be helpful > ------------------------------------------------------------------------ > > Key: BUILDR-616 > URL: https://issues.apache.org/jira/browse/BUILDR-616 > 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 project: > -------------------------------------------------------------------------------------- > #!/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 bundler. > 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira