From b7630dba177b95baeb77094ea3581622c443c6a4 Mon Sep 17 00:00:00 2001 From: brewn Date: Thu, 29 Mar 2018 16:45:15 -0400 Subject: add descriptions for actions Signed-off-by: brewn --- lib/chef/resource/windows_printer_port.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/chef') 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 -- cgit v1.2.1