Skip to content
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

Merged
merged 3 commits into from Oct 15, 2011
Merged

Conversation

ryansch
Copy link
Contributor

@ryansch ryansch commented Oct 13, 2011

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.

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")
Copy link
Contributor Author

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.

@fnichol
Copy link
Contributor

fnichol commented Oct 14, 2011

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.

@ryansch
Copy link
Contributor Author

ryansch commented Oct 14, 2011

:-D Glad you like it! This cookbook has solved so many of my rvm+chef issues.

fnichol added a commit that referenced this pull request Oct 15, 2011
fnichol added a commit that referenced this pull request Oct 15, 2011
@fnichol fnichol merged commit 99a2a30 into sous-chefs:master Oct 15, 2011
@fnichol
Copy link
Contributor

fnichol commented Oct 15, 2011

This looks to do the trick, thanks to @ryansch

phlipper pushed a commit to newleaders/chef-rvm that referenced this pull request Feb 1, 2012
phlipper pushed a commit to newleaders/chef-rvm that referenced this pull request Feb 1, 2012
phlipper pushed a commit to newleaders/chef-rvm that referenced this pull request Feb 1, 2012
@lock
Copy link

lock bot commented Apr 25, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants