diff options
Diffstat (limited to 'lib')
-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 |