From 72cc4fcf7f39055863ad0cf9e949e7132b0d19f2 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 11 Jun 2021 08:43:15 -0700 Subject: Minor improvements for our self documented resources Improve the content we generate Signed-off-by: Tim Smith --- lib/chef/resource/dsc_resource.rb | 2 +- lib/chef/resource/execute.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/chef/resource/dsc_resource.rb b/lib/chef/resource/dsc_resource.rb index 679deef47b..a869e2acc4 100644 --- a/lib/chef/resource/dsc_resource.rb +++ b/lib/chef/resource/dsc_resource.rb @@ -74,7 +74,7 @@ class Chef property :module_version, String, introduced: "12.21", - description: "The version number of the module to use. PowerShell 5.0.10018.0 (or higher) supports having multiple versions of a module installed. This should be specified along with the module_name." + description: "The version number of the module to use. PowerShell 5.0.10018.0 (or higher) supports having multiple versions of a module installed. This should be specified along with the `module_name` property." def property(property_name, value = nil) unless property_name.is_a?(Symbol) diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index b830f119be..1f7e1b2c1b 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -304,9 +304,9 @@ class Chef gives a recipe full control over the command issued in a much cleaner, more direct manner. - **Use the search recipe DSL method to find users**: + **Use the search Infra Language helper to find users**: - The following example shows how to use the `search` method in the Recipe DSL to + The following example shows how to use the `search` method in the Chef Infra Language to search for users: ```ruby @@ -515,7 +515,7 @@ class Chef property :command, [ String, Array ], name_property: true, - description: "An optional property to set the command to be executed if it differs from the resource block's name." + description: "An optional property to set the command to be executed if it differs from the resource block's name. Note: Use the **execute** resource to run a single command. Use multiple **execute** resource blocks to run multiple commands." property :umask, [ String, Integer ], description: "The file mode creation mask, or umask." -- cgit v1.2.1