diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-19 13:36:40 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-23 10:44:58 -0800 |
commit | 0e01c33eb861fc31fc63e15b9c59173e373aec2d (patch) | |
tree | 9cb1a79d8f7aa3f062f300c19038f237c4561481 /lib/chef/whitelist.rb | |
parent | 5c6ef532630f3d08325fd0e1635d2b6dd6057a31 (diff) | |
download | chef-0e01c33eb861fc31fc63e15b9c59173e373aec2d.tar.gz |
fixes Lint/UselessAccessModifier
Diffstat (limited to 'lib/chef/whitelist.rb')
-rw-r--r-- | lib/chef/whitelist.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/chef/whitelist.rb b/lib/chef/whitelist.rb index 86c229d22c..587baa6a3e 100644 --- a/lib/chef/whitelist.rb +++ b/lib/chef/whitelist.rb @@ -37,8 +37,6 @@ class Chef new_data end - private - # Walk the data has according to the keys provided by the whitelisted item # and add the data to the whitelisting result. def self.add_data(data, new_data, item) @@ -68,6 +66,8 @@ class Chef new_data end + private_class_method :add_data + # Accepts a String or an Array, and returns an Array of String keys that # are used to traverse the data hash. Strings are split on "/", Arrays are # assumed to contain exact keys (that is, Array elements will not be split @@ -80,5 +80,7 @@ class Chef parts end + private_class_method :to_array + end end |