summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-02 23:28:25 -0400
committerGitHub <noreply@github.com>2018-04-02 23:28:25 -0400
commit754b745222e8927be4875b98b095092eec0e23f1 (patch)
treede3fda55fd768d5abaaf8af9af3c3d96ac201496
parent921939a4b100ea0768f4179179acea910cfce375 (diff)
parent77416d736647abeeb63b4dce19d47f07bdb844fe (diff)
downloadchef-754b745222e8927be4875b98b095092eec0e23f1.tar.gz
Merge pull request #7093 from brewn/windows-printer-port-typo
[windows_printer_port] fix typo + add action descriptions
-rw-r--r--lib/chef/resource/windows_printer_port.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_printer_port.rb b/lib/chef/resource/windows_printer_port.rb
index 1c31500587..75e2f824e4 100644
--- a/lib/chef/resource/windows_printer_port.rb
+++ b/lib/chef/resource/windows_printer_port.rb
@@ -27,7 +27,7 @@ class Chef
resource_name :windows_printer_port
provides :windows_printer_port
- description "Use the windows_printer_port resoruce to create and delete TCP/IPv4 printer ports on Windows"
+ description "Use the windows_printer_port resource to create and delete TCP/IPv4 printer ports on Windows."
introduced "14.0"
property :ipv4_address, String,
@@ -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