There is a small bit of overhead at the moment as that use case hasn't
come up yet :)
Currently lets say for example you want to run somthing against 1.9.1:
result=`source ~/.bash_profile ; rvm 1.9.1 ; <<what you want to run
goes here>>`
If that gives you trouble instead of simply sourcing bash_profile you
can alternatively do:
result=`bash -l -c 'rvm 1.9.1 ; <<what you want to run goes here>>'`
Or maybe running specs against multiple ruby versions and nab the
result as JSON:
json_result=`source ~/.bash_profile ; rvm 1.9.1,1.8.6,jruby rake spec`
json = JSON.parse(json_result)
...
I have added a PT story to make this easier in the future so keep an
eye on the next few releases.
~Wayne