summaryrefslogtreecommitdiff
path: root/lib/chef/resource/msu_package.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-09-06 15:14:24 -0700
committerTim Smith <tsmith@chef.io>2018-09-06 15:38:31 -0700
commit990cca06ffee547aeda6a543e3cbf256f0b32bce (patch)
tree6d303ed79e59e8847d9cd241a4b2a011abafdb32 /lib/chef/resource/msu_package.rb
parent1f2bd56d781868cd259b71ce56e6b9bc992f0bea (diff)
downloadchef-990cca06ffee547aeda6a543e3cbf256f0b32bce.tar.gz
Add additional resource descriptions
Filling in more of the missing resource descriptions using the descriptions straight from the docs site. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/msu_package.rb')
-rw-r--r--lib/chef/resource/msu_package.rb17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/chef/resource/msu_package.rb b/lib/chef/resource/msu_package.rb
index 85ab170ee0..9fd39491c9 100644
--- a/lib/chef/resource/msu_package.rb
+++ b/lib/chef/resource/msu_package.rb
@@ -34,13 +34,16 @@ class Chef
default_action :install
property :source, String,
- coerce: (proc do |s|
- unless s.nil?
- uri_scheme?(s) ? s : Chef::Util::PathHelper.canonical_path(s, false)
- end
- end),
- default: lazy { |r| r.package_name }
- property :checksum, String, desired_state: false
+ description: "The local file path or URL for the MSU package.",
+ coerce: (proc do |s|
+ unless s.nil?
+ uri_scheme?(s) ? s : Chef::Util::PathHelper.canonical_path(s, false)
+ end
+ end),
+ default: lazy { |r| r.package_name }
+
+ property :checksum, String, desired_state: false,
+ description: "SHA-256 digest used to verify the checksum of the downloaded MSU package."
end
end
end