summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ohai.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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!