| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This saves us memory and gets us ready for a world where this becomes the default.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
So much easier to read and probably faster this way too.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
It is slow but it does catch real bugs
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
This makes it easier to read the classes.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Autocorrected from RuboCop Performance which is now smart enough to detect when you use the match and when you don't. Using match? does not create any objects so it's slightly faster and uses less memory.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Matt Ray <github@mattray.dev>
|
|
|
|
|
|
|
|
| |
armv6l is Raspberry Pi 1/Zero
armv7l is Raspberry Pi 2,3,4
Tested with Raspbian 10, Debian 10, Centos 7
Signed-off-by: Matt Ray <github@mattray.dev>
|
|
|
|
| |
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
|
|
|
|
|
|
| |
Use the latest fauxhai data to avoid a giant pile of spec warnings
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Daniel Webb <dan.webb@damacus.io>
|
|
|
|
|
|
|
|
| |
Legally incredibly dubious, particularly since we don't follow it
strictly as policy, and we have git history instead, which does it right.
This is just a waste of time and a cargo cult.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
It's tagged as first shipping in chef 15.10 since I plan to backport this and that'll make sense in the docs.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
|
|
| |
Ohai always returns the cloud key so checking for the key isn't valid for cloud. We need to make sure it's not nil instead.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
these were broken in chef-sugar
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
A copy and tweak of the architecture specs
Signed-off-by: Tim Smith <tsmith@chef.io>
|
|
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
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>
|