diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-02-06 20:05:46 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-06 20:05:46 -0800 |
commit | ced15938c804f4f078050e72b4a6ca82ded4b13c (patch) | |
tree | cccad451849c45d11fbb116bdf7995e33035e057 | |
parent | ff5e6468c4813fbf350c06124cca2eab76fe8ece (diff) | |
download | chef-ced15938c804f4f078050e72b4a6ca82ded4b13c.tar.gz |
Add more actions descriptions
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/windows_security_policy.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/windows_share.rb | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb index 78d56e2e46..980b59a0ca 100644 --- a/lib/chef/resource/windows_security_policy.rb +++ b/lib/chef/resource/windows_security_policy.rb @@ -98,7 +98,7 @@ class Chef secvalue current_state[desired.secoption.to_s] end - action :set do + action :set, description: "Set the Windows security policy" do converge_if_changed :secvalue do security_option = new_resource.secoption security_value = new_resource.secvalue diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index fe1e976747..fca63ade05 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -192,9 +192,7 @@ class Chef name end - action :create do - description "Create and modify Windows shares." - + action :create, description: "Create or modify a Windows share" do # we do this here instead of requiring the property because :delete doesn't need path set raise "No path property set" unless new_resource.path @@ -218,9 +216,7 @@ class Chef end end - action :delete do - description "Delete an existing Windows share." - + action :delete, description: "Delete an existing Windows share" do if current_resource.nil? Chef::Log.debug("#{new_resource.share_name} does not exist - nothing to do") else |