-
-
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
Add gpg-check to user_install recipe. #298
Conversation
RVM fails on machines with gpg installed. This fix checks for the existence of gpg on the system and imports the appropriate key as defined by the attribute. Use of a ruby_block will allow for some code reuse in the LWRP release.
I'm not sure why this test is failing. I don't have a loop as part of my ruby_block. |
ping @martinisoft @fnichol |
@cmluciano I'm venturing a guess that it is because you are running that resource from within the block started on line 22. Don't have an alternate suggestion at this time though. |
I'll go ahead and merge this despite the foodcritic complaint. We can address it later. |
@@ -26,6 +26,27 @@ | |||
# if user hash is not a hash (i.e. set to true), init an empty Hash | |||
opts = Hash.new if opts == true | |||
|
|||
ruby_block 'Conditionally add RVM gpg key' do |
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.
Perhaps try changing this to:
ruby_block "Conditionally add RVM gpg key for #{user}" do
Yay it works! |
@martinisoft Are you cool with me merging this? |
@cmluciano Go for it 👍 |
Add gpg-check to user_install recipe.
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. |
RVM fails on machines with gpg installed. It checks for the
existence of gpg on the system in a ruby_block and imports the . This will allow for some
code reuse for the LWRP release.