Closed bheuvel closed 8 years ago
I love the idea here, but given recent changes to the cookbook it break all sorts of tests. I'll try to resurrect this idea in a little while.
Rebased to current master, squashed rubocop commits.
These specific tests work. The other/existing tests are broken...
Closed via #77
Written a helper function which returns (true/false) if the requested versionlevel is present.
This simplifies the guards, and provides a method for other cookbooks to check if a minimum version is present. E.g. WMF5/Feb versionlevel is required for certain DSC (Chef 12) stuff, while with Chef 11 the WMF5-2014 is already enough.
Perhapsnot the most beautiful code (let me know how/where to adjust/improve), but useful nonetheless :wink: