justincampbell/whipped-cream

Doesn't detect ruby installed with RVM

Closed this issue · 5 comments

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?

Maybe sourcing the bash file will help. I've found a link for doing it with net/ssh by monkey patch.

@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:

  1. Check for RVM, skip bootstrap
  2. Check for RVM, attempt to source profile/other
  3. Add command line flag for skipping bootstrap

Any idea how to write tests for it?

I wrote the code to test for RVM but RVM uses rvmsudo for super user, any idea how to use rvmsudo for appropriate thing?

Sent a pull request #34