summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2021-05-03 09:24:25 -0700
committerJohn McCrae <john.mccrae@progress.com>2021-05-03 09:27:03 -0700
commit64f585ebd7af32233eb951542762539c7c6e6158 (patch)
tree8b2bca2acb36c9cc9a4bd084ce76b8086ddf6ce9
parent4d1bdfab1c15776d011f7e388b665cc9becc8467 (diff)
downloadchef-64f585ebd7af32233eb951542762539c7c6e6158.tar.gz
correcting linting and related errors
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--cspell.json2
-rw-r--r--lib/chef/resource/windows_package_manager.rb10
2 files changed, 7 insertions, 5 deletions
diff --git a/cspell.json b/cspell.json
index 84dbe1a786..22b576f367 100644
--- a/cspell.json
+++ b/cspell.json
@@ -607,6 +607,7 @@
"HARDWAREPROFILECHANGE",
"Haselwanter",
"hashify",
+ "Hashtable",
"hawtness",
"HBITMAP",
"HBRUSH",
@@ -1861,6 +1862,7 @@
"windres",
"winerror",
"winevt",
+ "winget",
"Winmgmt",
"winmgmts",
"WINNT",
diff --git a/lib/chef/resource/windows_package_manager.rb b/lib/chef/resource/windows_package_manager.rb
index ff6b837ed1..fc85a9f0a4 100644
--- a/lib/chef/resource/windows_package_manager.rb
+++ b/lib/chef/resource/windows_package_manager.rb
@@ -45,7 +45,7 @@ class Chef
```ruby
windows_package_manager "Add New Source" do
- source_name "xyzpackages"
+ source_name "my_package_source"
url https://foo/bar.com/packages
action :register
end
@@ -55,7 +55,7 @@ class Chef
```ruby
windows_package_manager "Add New Source" do
- source_name "xyzpackages"
+ source_name "my_package_source"
action :unregister
end
```
@@ -65,7 +65,7 @@ class Chef
```ruby
windows_package_manager "Install 7zip from new source" do
package_name 7zip
- source_name "xyzpackages"
+ source_name "my_package_source"
scope 'User'
location "C:\\Foo\\7Zip"
override "-o, -q, -h"
@@ -81,14 +81,14 @@ class Chef
property :source_name, String,
description: "The name of a custom installation source."
- # default: "winget"
+ default: "winget"
property :url, String,
description: "The url to a package or source"
property :scope, String,
description: "Install the package for the current user or the whole machine.",
- default: "user", equal_to: ["user", "machine"]
+ default: "user", equal_to: %w["user", "machine"]
property :location, String,
description: "The location on the local system to install the package to. For example 'c:\foo\'."