A few hints to use it with RVM.
HowTo install and excecute a command when RVM.
Dropping the sudo for installation makes sense, but I don't know why you'd use rvmsudo for execution instead of normal sudo (but I haven't used RVM in a while...)
The reason it's because sudo will start a new subshell and it will not contain the RVM environment by itself.
Ah that makes sense. Merging.