summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-01-13 08:17:27 -0800
committerTim Smith <tsmith84@gmail.com>2021-01-13 08:17:27 -0800
commit7336bbbc1060c48dad3d6d3852659b283f632288 (patch)
treee0a2063281e796028c9f2fd8ab005ca06e11ccde
parenteaf5092b73b9f0e21f6d1bc326c643e4978078f1 (diff)
downloadchef-docs_fixes.tar.gz
Minor updates to resource descriptionsdocs_fixes
Improve the docs generation. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/execute.rb4
-rw-r--r--lib/chef/resource/remote_directory.rb4
-rw-r--r--lib/chef/resource/remote_file.rb4
3 files changed, 7 insertions, 5 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index 5a78160642..11006a6696 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -549,7 +549,7 @@ class Chef
desired_state: false
property :user, [ String, Integer ],
- description: "The user name of the user identity with which to launch the new process. The user name may optionally be specified with a domain, i.e. `domainuser` or `user@my.dns.domain.com` via Universal Principal Name (UPN)format. It can also be specified without a domain simply as user if the domain is instead specified using the domain property. On Windows only, if this property is specified, the password property must be specified."
+ description: "The user name of the user identity with which to launch the new process. The user name may optionally be specified with a domain, i.e. `domain\\user` or `user@my.dns.domain.com` via Universal Principal Name (UPN)format. It can also be specified without a domain simply as user if the domain is instead specified using the domain property. On Windows only, if this property is specified, the password property must be specified."
property :domain, String,
introduced: "12.21",
@@ -562,7 +562,7 @@ class Chef
# lazy used to set default value of sensitive to true if password is set
property :sensitive, [ TrueClass, FalseClass ],
description: "Ensure that sensitive resource data is not logged by the #{ChefUtils::Dist::Infra::PRODUCT}.",
- default: lazy { password ? true : false }, default_description: "True if the password property is set. False otherwise."
+ default: lazy { password ? true : false }, default_description: "True if the `password` property is set. False otherwise."
property :elevated, [ TrueClass, FalseClass ], default: false,
description: "Determines whether the script will run with elevated permissions to circumvent User Access Control (UAC) from interactively blocking the process.\nThis will cause the process to be run under a batch login instead of an interactive login. The user running #{ChefUtils::Dist::Infra::CLIENT} needs the 'Replace a process level token' and 'Adjust Memory Quotas for a process' permissions. The user that is running the command needs the 'Log on as a batch job' permission.\nBecause this requires a login, the user and password properties are required.",
diff --git a/lib/chef/resource/remote_directory.rb b/lib/chef/resource/remote_directory.rb
index b87fe8c085..e7640e686e 100644
--- a/lib/chef/resource/remote_directory.rb
+++ b/lib/chef/resource/remote_directory.rb
@@ -71,7 +71,7 @@ class Chef
desired_state: false
property :files_group, [String, Integer],
- description: "Configure group permissions for files. A string or ID that identifies the group owner by group name, including fully qualified group names such as domain\\group or group@domain. If this value is not specified, existing groups remain unchanged and new group assignments use the default POSIX group (if available).",
+ description: "Configure group permissions for files. A string or ID that identifies the group owner by group name, including fully qualified group names such as `domain\\group` or `group@domain`. If this value is not specified, existing groups remain unchanged and new group assignments use the default POSIX group (if available).",
regex: Chef::Config[:group_valid_regex]
property :files_mode, [String, Integer, nil],
@@ -80,7 +80,7 @@ class Chef
regex: /^\d{3,4}$/, default: lazy { 0644 unless Chef::Platform.windows? }
property :files_owner, [String, Integer],
- description: "Configure owner permissions for files. A string or ID that identifies the group owner by user name, including fully qualified user names such as domain\\user or user@domain. If this value is not specified, existing owners remain unchanged and new owner assignments use the current user (when necessary).",
+ description: "Configure owner permissions for files. A string or ID that identifies the group owner by user name, including fully qualified user names such as `domain\\user` or `user@domain`. If this value is not specified, existing owners remain unchanged and new owner assignments use the current user (when necessary).",
regex: Chef::Config[:user_valid_regex]
end
end
diff --git a/lib/chef/resource/remote_file.rb b/lib/chef/resource/remote_file.rb
index ac0b2fe6a7..685bcbfe15 100644
--- a/lib/chef/resource/remote_file.rb
+++ b/lib/chef/resource/remote_file.rb
@@ -98,7 +98,9 @@ class Chef
property :headers, Hash, default: lazy { {} },
description: "A Hash of custom HTTP headers."
- property :show_progress, [ TrueClass, FalseClass ], default: false
+ property :show_progress, [ TrueClass, FalseClass ],
+ default: false,
+ description: "Displays the progress of the file download."
property :ssl_verify_mode, Symbol, equal_to: %i{verify_none verify_peer},
introduced: "16.2",