capistrano / rvm

MIT License
140 stars 47 forks source link

rvm_path vs rvm_custom_path #23

Closed kyledecot closed 5 years ago

kyledecot commented 10 years ago

I'm a little confused as to why there is both rvm_path and rvm_custom_path. What is the difference between the two?

Kriechi commented 10 years ago

The only relevant one for the user is :rvm_custom_path The other one is just used internally during run time.

kyledecot commented 10 years ago

If rvm_path is only meant to be used internally then shouldn't it be an instance method or something. It seems that leveraging capistrano's set method leads people to assume that this is supposed to be a configurable value.

Kriechi commented 10 years ago

Valid point. But maybe people should only assume things to use, which are documented in the README. If someone really wants to go through the code, I would assume the person will figure it out.

just my 2 cents.

mczepiel commented 8 years ago

FWIW, the README currently mentions :rvm_custom_path as the way to specify the path but setting that has no effect on capistrano/bundler's bundle:install task Meanwhile, setting :rvm_path gets things pointed at the right place.

There are plenty of contradictory examples/docs out there; it's not obvious what you're supposed to actually do.

cklll commented 3 years ago

+1 for @mczepiel

which rvm
/usr/local/rvm/bin/rvm

And then the following deploy.rb works

set :rvm_type, :system
set :rvm_path, '/usr/local/rvm'