diff options
author | brewn <nbrewer@chef.io> | 2018-03-29 16:45:15 -0400 |
---|---|---|
committer | brewn <nbrewer@chef.io> | 2018-03-29 16:45:15 -0400 |
commit | b7630dba177b95baeb77094ea3581622c443c6a4 (patch) | |
tree | face26885ab03e535030c48d32cdb25e67046883 | |
parent | aeeffb4c4d84ab0ab73e2d85bc3819f3cc5a9925 (diff) | |
download | chef-b7630dba177b95baeb77094ea3581622c443c6a4.tar.gz |
add descriptions for actions
Signed-off-by: brewn <nbrewer@chef.io>
-rw-r--r-- | lib/chef/resource/windows_printer_port.rb | 4 |
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 |