-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No Default RVM Ruby #14
Comments
Additionally, once I do the above and have RVM installed and RVM rubies installed but no default RVM ruby (instead continuing to use system ruby as the default).... When I follow up and do
then, in the same initial run of the my cookbook (which makes use of your RVM cookbook), I get
But on the second attempt to run the cookbook, the "rvm_gem[whatever]" resource succeeds (instead of failing with the above backtrace) as expected. |
Ok, I see a couple of tweaks in the default recipe that I can make. Primarily, handling an empty or nil I'm also going to see if setting Thanks! |
Now I see what you were seeing with your initial chef run (sh: rvm: not found). Looks like it's a behavior change I made for #10, so this needs re-addressing. |
The cookbook currently doesn't think that The cookbook should permit In recipes/default.rb, there should be such a check. Alternatively, the check could be moved further up the call chain: e.g., in providers/default_ruby.rb, have an explicit check for |
This should do it. I made the |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Provide an easy way to disable having a default RVM Ruby while keeping the system Ruby as the default.
Currently, I have to:
before:
The text was updated successfully, but these errors were encountered: