summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrewn <nbrewer@chef.io>2018-03-29 16:45:15 -0400
committerbrewn <nbrewer@chef.io>2018-03-29 16:45:15 -0400
commitb7630dba177b95baeb77094ea3581622c443c6a4 (patch)
treeface26885ab03e535030c48d32cdb25e67046883
parentaeeffb4c4d84ab0ab73e2d85bc3819f3cc5a9925 (diff)
downloadchef-b7630dba177b95baeb77094ea3581622c443c6a4.tar.gz
add descriptions for actions
Signed-off-by: brewn <nbrewer@chef.io>
-rw-r--r--lib/chef/resource/windows_printer_port.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_printer_port.rb b/lib/chef/resource/windows_printer_port.rb
index 46b6ef65a3..ba718bb413 100644
--- a/lib/chef/resource/windows_printer_port.rb
+++ b/lib/chef/resource/windows_printer_port.rb
@@ -76,6 +76,8 @@ class Chef
end
action :create do
+ description "Create the new printer port if it does not already exist."
+
if current_resource.exists
Chef::Log.info "#{@new_resource} already exists - nothing to do."
else
@@ -86,6 +88,8 @@ class Chef
end
action :delete do
+ description "Delete an existing printer port."
+
if current_resource.exists
converge_by("Delete #{@new_resource}") do
delete_printer_port