-
Notifications
You must be signed in to change notification settings - Fork 55
(MODULES-9304) Add Puppet Strings docs #153
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
Conversation
puppetlabs-acl/lib/puppet/provider/acl/windows/base.rb Lines 17 to 21 in 76fdb70
The reason for this change is that by putting everything inside the if block, YARD is unable to parse the comments of any of the methods. I tried a number of different things to remove this if block however every time it would result in errors. By applying it only on the requires, the tests pass fine however I'm not sure if this is the best solution. Feel free to give some other ideas of better alternatives. |
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.
I see now that I should have commented each of these one line lower to make the review comments easier to see in this view. Sorry about that.
Strictly speaking you should probably add a guard clause to every single public method e.g.
However...this whole if thing could be a hangover from the Puppet 3 days and the tests may be testing the wrong thing? |
@glennsarti I believe the errors are to do with Windows platform specific gem dependencies that do not work on nix based systems (i.e. the gems being required in the file). The acceptance test suite also contains similar if clauses for requiring gems from |
Manually tested the module with a Puppet master deliberately trying to trigger an explosion. Even with no |
No description provided.