I don't think --prefix is supported in the latest versions of rvm… when I was writing this up, my options were to parse `rvm info` or this…

On Jun 25, 2013, at 3:23 PM, Patrick Connolly <notifications@github.com> wrote:

> In lib/vagrant-cachier/cap/linux/rvmdir.rb:
> 
> > @@ -0,0 +1,21 @@
> > +module VagrantPlugins
> > +  module Cachier
> > +    module Cap
> > +      module Linux
> > +        module Rvmdir
> > +          def self.rvmdir(machine)
> > +            rvmdir = nil
> > +            machine.communicate.tap do |comm|
> > +              return unless comm.test('rvm info')
> > +              comm.execute 'echo $rvm_path' do |buffer, output|
> Is it better to use a check that actually goes through rvm? I can imagine a situation where someone is loading their dotfiles, and $rvm_path might be set, but no rvm is being used. Perhaps rvm --prefix would be preferable (~/.rvm/ by default)?
> 
> See: http://manpages.ubuntu.com/manpages/precise/man1/rvm.1.html
> 
> —
> Reply to this email directly or view it on GitHub.
>