summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-29 18:26:15 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-29 18:26:15 -0700
commit8f78297684c6c000ddd5d5e7f925ab1da654019d (patch)
tree91edc34e54adeb290b397ede5b294a1d00e6ec4e
parent345f533a83ea3c40cb1f0517403abce19b35eae3 (diff)
downloadchef-8f78297684c6c000ddd5d5e7f925ab1da654019d.tar.gz
More resource formatting and wording updates
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/file.rb2
-rw-r--r--lib/chef/resource/gem_package.rb2
-rw-r--r--lib/chef/resource/ifconfig.rb12
-rw-r--r--lib/chef/resource/windows_auto_run.rb2
-rw-r--r--lib/chef/resource/windows_feature.rb2
-rw-r--r--lib/chef/resource/windows_feature_dism.rb2
-rw-r--r--lib/chef/resource/windows_feature_powershell.rb2
-rw-r--r--lib/chef/resource/windows_package.rb2
-rw-r--r--lib/chef/resource/windows_pagefile.rb2
-rw-r--r--lib/chef/resource/windows_task.rb2
10 files changed, 15 insertions, 15 deletions
diff --git a/lib/chef/resource/file.rb b/lib/chef/resource/file.rb
index a2f2009bd0..930e044846 100644
--- a/lib/chef/resource/file.rb
+++ b/lib/chef/resource/file.rb
@@ -73,7 +73,7 @@ class Chef
property :diff, [ String, nil ], desired_state: false, skip_docs: true
property :force_unlink, [ TrueClass, FalseClass ], desired_state: false, default: false,
- description: "How the #{Chef::Dist::CLIENT} handles certain situations when the target file turns out not to be a file. For example, when a target file is actually a symlink. Set to true for the #{Chef::Dist::CLIENT} delete the non-file target and replace it with the specified file. Set to false for the #{Chef::Dist::CLIENT} to raise an error."
+ description: "How #{Chef::Dist::PRODUCT} handles certain situations when the target file turns out not to be a file. For example, when a target file is actually a symlink. Set to true for #{Chef::Dist::PRODUCT} to delete the non-file target and replace it with the specified file. Set to false for #{Chef::Dist::PRODUCT} to raise an error."
property :manage_symlink_source, [ TrueClass, FalseClass ], desired_state: false,
description: "Change the behavior of the file resource if it is pointed at a symlink. When this value is set to true, #{Chef::Dist::PRODUCT} will manage the symlink's permissions or will replace the symlink with a normal file if the resource has content. When this value is set to false, #{Chef::Dist::PRODUCT} will follow the symlink and will manage the permissions and content of symlink's target file. The default behavior is true but emits a warning that the default value will be changed to false in a future version; setting this explicitly to true or false suppresses this warning."
diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb
index eda415526e..a5184f41d6 100644
--- a/lib/chef/resource/gem_package.rb
+++ b/lib/chef/resource/gem_package.rb
@@ -49,7 +49,7 @@ class Chef
description: "Optional. The URL, or list of URLs, at which the gem package is located. This list is added to the source configured in Chef::Config[:rubygems_url] (see also include_default_source) to construct the complete list of rubygems sources. Users in an 'airgapped' environment should set Chef::Config[:rubygems_url] to their local RubyGems mirror."
property :clear_sources, [ TrueClass, FalseClass, nil ],
- description: "Set to 'true' to download a gem from the path specified by the source property (and not from RubyGems).",
+ description: "Set to 'true' to download a gem from the path specified by the `source` property (and not from RubyGems).",
default: lazy { Chef::Config[:clear_gem_sources] }, desired_state: false
property :gem_binary, String, desired_state: false,
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb
index 72e918b1e9..8d74b27fc6 100644
--- a/lib/chef/resource/ifconfig.rb
+++ b/lib/chef/resource/ifconfig.rb
@@ -45,11 +45,11 @@ class Chef
description: "The hardware address for the network interface."
property :mask, String,
- description: "The decimal representation of the network mask. For example: 255.255.255.0."
+ description: "The decimal representation of the network mask. For example: `255.255.255.0`."
property :family, String, default: "inet",
- introduced: "14.0",
- description: "Networking family option for Debian-based systems; for example: inet or inet6."
+ introduced: "14.0",
+ description: "Networking family option for Debian-based systems; for example: `inet` or `inet6`."
property :inet_addr, String,
description: "The Internet host address for the network interface."
@@ -81,11 +81,11 @@ class Chef
property :ethtool_opts, String,
introduced: "13.4",
- description: "Options to be passed to ethtool(8). For example: -A eth0 autoneg off rx off tx off."
+ description: "Options to be passed to ethtool(8). For example: `-A eth0 autoneg off rx off tx off`."
property :bonding_opts, String,
introduced: "13.4",
- description: "Bonding options to pass via BONDING_OPTS on RHEL and CentOS. For example: mode=active-backup miimon=100."
+ description: "Bonding options to pass via `BONDING_OPTS` on RHEL and CentOS. For example: `mode=active-backup miimon=100`."
property :master, String,
introduced: "13.4",
@@ -93,7 +93,7 @@ class Chef
property :slave, String,
introduced: "13.4",
- description: "When set to yes, this device is controlled by the channel bonding interface that is specified via the master property."
+ description: "When set to `yes`, this device is controlled by the channel bonding interface that is specified via the `master` property."
property :vlan, String,
introduced: "14.4",
diff --git a/lib/chef/resource/windows_auto_run.rb b/lib/chef/resource/windows_auto_run.rb
index dd8449be9e..63af080191 100644
--- a/lib/chef/resource/windows_auto_run.rb
+++ b/lib/chef/resource/windows_auto_run.rb
@@ -32,7 +32,7 @@ class Chef
property :path, String,
coerce: proc { |x| x.tr("/", "\\") }, # make sure we have windows paths for the registry
- description: "The path to the program that will run at login. "
+ description: "The path to the program that will run at login."
property :args, String,
description: "Any arguments to be used with the program."
diff --git a/lib/chef/resource/windows_feature.rb b/lib/chef/resource/windows_feature.rb
index b90f96e79d..4a4179f944 100644
--- a/lib/chef/resource/windows_feature.rb
+++ b/lib/chef/resource/windows_feature.rb
@@ -42,7 +42,7 @@ class Chef
default: false
property :install_method, Symbol,
- description: "The underlying installation method to use for feature installation. Specify ':windows_feature_dism' for DISM or ':windows_feature_powershell' for PowerShell.",
+ description: "The underlying installation method to use for feature installation. Specify `:windows_feature_dism` for DISM or `:windows_feature_powershell` for PowerShell.",
equal_to: %i{windows_feature_dism windows_feature_powershell windows_feature_servermanagercmd},
default: :windows_feature_dism
diff --git a/lib/chef/resource/windows_feature_dism.rb b/lib/chef/resource/windows_feature_dism.rb
index 3f29956dd1..276eb9cb1f 100644
--- a/lib/chef/resource/windows_feature_dism.rb
+++ b/lib/chef/resource/windows_feature_dism.rb
@@ -36,7 +36,7 @@ class Chef
description: "Specify a local repository for the feature install."
property :all, [TrueClass, FalseClass],
- description: "Install all sub-features. When set to 'true', this is the equivalent of specifying the /All switch to dism.exe",
+ description: "Install all sub-features. When set to `true`, this is the equivalent of specifying the `/All` switch to `dism.exe`",
default: false
property :timeout, Integer,
diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb
index d26dd95c91..522ffcf4a7 100644
--- a/lib/chef/resource/windows_feature_powershell.rb
+++ b/lib/chef/resource/windows_feature_powershell.rb
@@ -37,7 +37,7 @@ class Chef
description: "Specify a local repository for the feature install."
property :all, [TrueClass, FalseClass],
- description: "Install all subfeatures. When set to 'true', this is the equivalent of specifying the '-InstallAllSubFeatures' switch with 'Add-WindowsFeature'.",
+ description: "Install all subfeatures. When set to `true`, this is the equivalent of specifying the `-InstallAllSubFeatures` switch with `Add-WindowsFeature`.",
default: false
property :timeout, Integer,
diff --git a/lib/chef/resource/windows_package.rb b/lib/chef/resource/windows_package.rb
index ccedd654bd..b0af2c6aef 100644
--- a/lib/chef/resource/windows_package.rb
+++ b/lib/chef/resource/windows_package.rb
@@ -79,7 +79,7 @@ class Chef
property :checksum, String,
desired_state: false, coerce: (proc { |c| c.downcase }),
- description: "The SHA-256 checksum of the file. Use to prevent a file from being re-downloaded. When the local file matches the checksum, #{Chef::Dist::PRODUCT} does not download it. Use when a URL is specified by the source property."
+ description: "The SHA-256 checksum of the file. Use to prevent a file from being re-downloaded. When the local file matches the checksum, #{Chef::Dist::PRODUCT} does not download it. Use when a URL is specified by the `source` property."
property :remote_file_attributes, Hash,
desired_state: false,
diff --git a/lib/chef/resource/windows_pagefile.rb b/lib/chef/resource/windows_pagefile.rb
index e2d9590f64..c43838b932 100644
--- a/lib/chef/resource/windows_pagefile.rb
+++ b/lib/chef/resource/windows_pagefile.rb
@@ -34,7 +34,7 @@ class Chef
description: "Configures whether the system manages the pagefile size."
property :automatic_managed, [TrueClass, FalseClass],
- description: "Enable automatic management of pagefile initial and maximum size. Setting this to true ignores 'initial_size' and 'maximum_size' properties.",
+ description: "Enable automatic management of pagefile initial and maximum size. Setting this to true ignores `initial_size` and `maximum_size` properties.",
default: false
property :initial_size, Integer,
diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb
index ecdd4cd857..2a2887ca0a 100644
--- a/lib/chef/resource/windows_task.rb
+++ b/lib/chef/resource/windows_task.rb
@@ -31,7 +31,7 @@ class Chef
default_action :create
property :task_name, String, regex: [%r{\A[^/\:\*\?\<\>\|]+\z}],
- description: "An optional property to set the task name if it differs from the resource block's name. Example: 'Task Name' or '/Task Name'",
+ description: "An optional property to set the task name if it differs from the resource block's name. Example: `Task Name` or `/Task Name`",
name_property: true
property :command, String,