Doesn't detect ruby installed with RVM
Closed this issue · 5 comments
shobhitic commented
I installed ruby using RVM and then deployed from my computer, but it didn't detect ruby and went on installing it.
Can we put a check in place to see if ruby was installed using RVM? Load up the bash file probably?
shobhitic commented
Maybe sourcing the bash file will help. I've found a link for doing it with net/ssh
by monkey patch.
justincampbell commented
@shobhitic I'd happily accept a patch that kept the existing functionality while adding support (or a workaroung for) RVM. We could do a couple of things:
- Check for RVM, skip bootstrap
- Check for RVM, attempt to source profile/other
- Add command line flag for skipping bootstrap
shobhitic commented
Any idea how to write tests for it?
shobhitic commented
I wrote the code to test for RVM but RVM uses rvmsudo for super user, any idea how to use rvmsudo for appropriate thing?