I think there's a rvm "do" command that might let you do this?