-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making all set actions explicit. #46
Conversation
This will use the 'do' keyword for newer rvms.
module SetHelpers | ||
def rvm_do(user = nil) | ||
# Use Gem's version comparing code to compare the two strings | ||
if Gem::Version.new(VersionCache.fetch_version(user)) <= Gem::Version.new("1.8.6") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fnichol: If you hate abusing Gem this way, we can pull in versionomy (https://github.com/dazuma/versionomy) to do it instead.
Freaking awesome dude! I just started working on this problem and found I missed reading the github pull request email. Pretty much the same implementation path too :) Let me run this through a VM and I'll get this pulled. |
:-D Glad you like it! This cookbook has solved so many of my rvm+chef issues. |
This looks to do the trick, thanks to @ryansch |
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. |
This will use the 'do' keyword for newer rvms and 'exec' for older rvms.
This is my first pass at functionality. I've got it working in both test environments with rvm 1.6.5 and rvm head. If you like it, I'll add some documentation.