summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ohai.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge ohai resource / provider into a single resourceTim Smith2020-04-161-45/+0
| | | | | | Simplify this resource and squash some files Signed-off-by: Tim Smith <tsmith@chef.io>
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-1/+1
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* mechanical conversion of most debug log statements to traceThom May2018-03-261-1/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* Core providers that don’t need use_inline_resources anymore.Noah Kantrowitz2017-04-041-2/+0
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* support why-run by defaultlcg/default-whyrun-supportedLamont Granquist2017-03-011-4/+0
| | | | | | | this should fix several bugs in providers that look like they should support whyrun but fail to declare it. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* cleans up the remaining new/current_resource ivarslcg/remove-ivarsLamont Granquist2017-02-151-1/+1
| | | | | | switches from using ivars to accessors for getters Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Update ohai resource to new style, stop overwriting name propertyadamleff/update-ohai-resourceAdam Leff2016-12-021-3/+5
| | | | | | | | | | | | | If #5606 is approved, any resource that creates a property that is an already-existing Ruby method on a Chef::Resource object will throw a deprecation warning. The ohai resource currently creates a `name` property which conflicts with the `name` property created in the base Chef::Resource class. This change updates the ohai resource and provider to the new style of defining resources and stops overwriting the `name` method. Signed-off-by: Adam Leff <adam@leff.co>
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-1/+1
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Add `provides` to remaining provider resourcesJohn Keiser2015-05-131-0/+1
|
* Fix the Ohai resource for Ohai 7.sersut2014-03-071-5/+6
| | | | | Conflicts: spec/unit/provider/ohai_spec.rb
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+47
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!