News for hackers. Stuff that matters.
Re:Time to hand over the reins before Capistrano costs me my... by otterley on Monday October 07, 2013 @01:47AM (#6506663)
You're doing too much. All you need to do is:

  source /usr/local/rvm/environments/$BUILD
You can put it in a wrapper script if you like. It will unset all conflicting environment variables first.
Re:Time to hand over the reins before Capistrano costs me my... by eulerphi on Monday October 07, 2013 @06:19AM (#6507328)
The thing is that the rvmrc has the jruby version env set. So I need to load it first. And it contains an 'rvm use' which I don't want to fail. I suppose I can slim the rvmrc down to just include the environment and then all I would need to do is source the rvmrc? Thoughts?
Re:Time to hand over the reins before Capistrano costs me my... by otterley on Monday October 07, 2013 @12:30PM (#6509343)
I don't believe you need to source the rvmrc. The line I pasted above does all the necessary things that "rvm use $BUILD" would do for a shell, without all the things that require an interactive shell.
Re:Time to hand over the reins before Capistrano costs me my... by eulerphi on Tuesday October 08, 2013 @12:54AM (#6513127)
The rvmrc is part of the repo and contains the java_opts env.