summaryrefslogtreecommitdiff
path: root/chef-utils/spec
Commit message (Collapse)AuthorAgeFilesLines
* Add windows_nt_version and powershell_version helpers to chef-utilsmore_windows_helpersTim Smith2020-01-291-11/+31
| | | | | | These both return version objects which means they can be compared without creating version objects first or .to_i / .to_f messes. Much simpler for users. Signed-off-by: Tim Smith <tsmith@chef.io>
* Add specs for the windows helperswindows_utilsTim Smith2020-01-212-0/+65
| | | | | | A copy and tweak of the architecture specs Signed-off-by: Tim Smith <tsmith@chef.io>
* additional chef-utils helpers for rhel6/7/8Lamont Granquist2019-11-141-12/+42
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* rename windows_ruby_platform? to windows_ruby?Lamont Granquist2019-11-121-6/+6
| | | | | | | | | while it checks against the RUBY_PLATFORM to see if it is windows, and so therefore the old name sort of makes sense, it does not make sense in the context of all the rest of the chef platform helpers that have the `_platform?` suffix. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add chef-utils gem with various recipe DSL helpersLamont Granquist2019-11-0811-0/+1452
This is the implementation of [RFC-087](https://github.com/chef-boneyard/chef-rfc/blob/master/rfc087-distro-sugar-helpers.md) although some of the specifics have been iterated on and changed. The documentation will be in the [README.md](https://github.com/chef/chef/tree/master/chef-utils/README.md) once this is merged. While this PR mostly moves chef-sugar utilities into core-chef via this chef-utils gem, the scope of the chef-utils gem should be considered larger than just that. As an example this PR moves the Mash class into this gem for reuse in ohai as well. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>