summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-04 15:43:33 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-04 15:43:33 -0700
commitc8cb9344f59f4a9610e94c951b94593277ba825e (patch)
treebeedd216aca103f88bbc27a38af33d082d68835f
parenta36cbf678ddd2872c2c31482f0ec5d38c4034001 (diff)
downloadchef-c8cb9344f59f4a9610e94c951b94593277ba825e.tar.gz
Chefstyle fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/knife/environment_compare.rb2
-rw-r--r--lib/chef/knife/list.rb2
-rw-r--r--lib/chef/resource/sysctl.rb5
3 files changed, 4 insertions, 5 deletions
diff --git a/lib/chef/knife/environment_compare.rb b/lib/chef/knife/environment_compare.rb
index 38e259a856..22abee59c8 100644
--- a/lib/chef/knife/environment_compare.rb
+++ b/lib/chef/knife/environment_compare.rb
@@ -81,7 +81,7 @@ class Chef
def constraint_list(environments)
constraints = {}
- environments.each do |env, url| # rubocop:disable Performance/HashEachMethods
+ environments.each do |env, url| # rubocop:disable Style/HashEachMethods
# Because you cannot modify the default environment I filter it out here.
unless env == "_default"
envdata = Chef::Environment.load(env)
diff --git a/lib/chef/knife/list.rb b/lib/chef/knife/list.rb
index e5e196ecea..1cc398e01a 100644
--- a/lib/chef/knife/list.rb
+++ b/lib/chef/knife/list.rb
@@ -90,7 +90,7 @@ class Chef
# Flatten out directory results if necessary
if config[:flat]
- dir_results.each do |result, children| # rubocop:disable Performance/HashEachMethods
+ dir_results.each do |result, children| # rubocop:disable Style/HashEachMethods
results += children
end
dir_results = []
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb
index 857688ee97..fcc82d09a2 100644
--- a/lib/chef/resource/sysctl.rb
+++ b/lib/chef/resource/sysctl.rb
@@ -39,7 +39,7 @@ class Chef
end
```
- **Remove kernel.msgmax**
+ **Remove kernel.msgmax**:
**Note**: This only removes the sysctl.d config for kernel.msgmax. The value will be set back to the kernel default value.
@@ -49,7 +49,7 @@ class Chef
end
```
- **Adding Comments to sysctl configuration files**
+ **Adding Comments to sysctl configuration files**:
```ruby
sysctl 'vm.swappiness' do
@@ -90,7 +90,6 @@ class Chef
```
DOC
-
introduced "14.0"
property :key, String,