diff options
author | Tim Smith <tsmith84@gmail.com> | 2019-11-14 16:39:38 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2019-11-14 16:39:38 -0800 |
commit | e8cf6833db1d43e1d89a1380325399b8874e3273 (patch) | |
tree | 17fc7a6379a49ec6d560dcdc4c4fe8a1ae13c8bb /lib/chef/resource | |
parent | 1829110104757c8fbc79f5e851e9135f99ec2163 (diff) | |
download | chef-e8cf6833db1d43e1d89a1380325399b8874e3273.tar.gz |
Improve resource descriptions and the rake task for docs generation
Bring in a few more copy edits that were done on the website and improve the rake task so that it better creates docs that match the formatting we want.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/breakpoint.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/build_essential.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/sudo.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/windows_env.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/windows_feature.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource/windows_feature_powershell.rb | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/resource/breakpoint.rb b/lib/chef/resource/breakpoint.rb index 6584aad882..0beb7152a0 100644 --- a/lib/chef/resource/breakpoint.rb +++ b/lib/chef/resource/breakpoint.rb @@ -27,7 +27,7 @@ class Chef provides :breakpoint, target_mode: true resource_name :breakpoint - description "Use the breakpoint resource to add breakpoints to recipes. Run the #{Chef::Dist::SHELL} in #{Chef::Dist::CLIENT} mode, and then use those breakpoints to debug recipes. Breakpoints are ignored by the #{Chef::Dist::CLIENT} during an actual #{Chef::Dist::CLIENT} run. That said, breakpoints are typically used to debug recipes only when running them in a non-production environment, after which they are removed from those recipes before the parent cookbook is uploaded to the Chef server." + description "Use the breakpoint resource to add breakpoints to recipes. Run the #{Chef::Dist::SHELL} in #{Chef::Dist::PRODUCT} mode, and then use those breakpoints to debug recipes. Breakpoints are ignored by the #{Chef::Dist::CLIENT} during an actual #{Chef::Dist::CLIENT} run. That said, breakpoints are typically used to debug recipes only when running them in a non-production environment, after which they are removed from those recipes before the parent cookbook is uploaded to the Chef server." introduced "12.0" default_action :break diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb index 0fb06486d9..8d93e57aab 100644 --- a/lib/chef/resource/build_essential.rb +++ b/lib/chef/resource/build_essential.rb @@ -22,7 +22,7 @@ class Chef resource_name :build_essential provides(:build_essential) { true } - description "Use the build_essential resource to install packages required for compiling C software from source." + description "Use the build_essential resource to install the packages required for compiling C software from source." introduced "14.0" examples <<~DOC Install compilation packages diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb index d282d92c5e..c045b1266b 100644 --- a/lib/chef/resource/sudo.rb +++ b/lib/chef/resource/sudo.rb @@ -30,7 +30,7 @@ class Chef description "Use the sudo resource to add or remove individual sudo entries using sudoers.d files."\ " Sudo version 1.7.2 or newer is required to use the sudo resource, as it relies on the"\ " '#includedir' directive introduced in version 1.7.2. This resource does not enforce"\ - " installation of the required sudo version. Supported releases of Ubuntu, SuSE, Debian,"\ + " installation of the required sudo version. Chef-supported releases of Ubuntu, SuSE, Debian,"\ " and RHEL (6+) all support this feature." introduced "14.0" diff --git a/lib/chef/resource/windows_env.rb b/lib/chef/resource/windows_env.rb index 27bdbb74a8..d1e14b1d04 100644 --- a/lib/chef/resource/windows_env.rb +++ b/lib/chef/resource/windows_env.rb @@ -26,7 +26,7 @@ class Chef provides :windows_env provides :env # backwards compat with the pre-Chef 14 resource name - description "Use the env resource to manage environment keys in Microsoft Windows. After an environment key is set, Microsoft Windows must be restarted before the environment key will be available to the Task Scheduler." + description "Use the windows_env resource to manage environment keys in Microsoft Windows. After an environment key is set, Microsoft Windows must be restarted before the environment key will be available to the Task Scheduler." default_action :create allowed_actions :create, :delete, :modify diff --git a/lib/chef/resource/windows_feature.rb b/lib/chef/resource/windows_feature.rb index cc80284019..c1edcc002b 100644 --- a/lib/chef/resource/windows_feature.rb +++ b/lib/chef/resource/windows_feature.rb @@ -24,7 +24,7 @@ class Chef resource_name :windows_feature provides(:windows_feature) { true } - description "Use the windows_feature resource to add, remove or entirely delete Windows features and roles. This resource calls the 'windows_feature_dism' or 'windows_feature_powershell' resources depending on the specified installation method and defaults to dism, which is available on both Workstation and Server editions of Windows." + description "Use the windows_feature resource to add, remove or entirely delete Windows features and roles. This resource calls the 'windows_feature_dism' or 'windows_feature_powershell' resources depending on the specified installation method, and defaults to DISM, which is available on both Workstation and Server editions of Windows." introduced "14.0" property :feature_name, [Array, String], @@ -35,7 +35,7 @@ class Chef description: "Specify a local repository for the feature install." property :all, [TrueClass, FalseClass], - description: "Install all sub features.", + description: "Install all sub-features.", default: false property :management_tools, [TrueClass, FalseClass], diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb index 5cdbe1f74c..7d454a23bb 100644 --- a/lib/chef/resource/windows_feature_powershell.rb +++ b/lib/chef/resource/windows_feature_powershell.rb @@ -27,7 +27,7 @@ class Chef resource_name :windows_feature_powershell provides(:windows_feature_powershell) { true } - description "Use the windows_feature_powershell resource to add, remove, or entirely delete Windows features and roles using PowerShell. This resource offers significant speed benefits over the windows_feature_dism resource, but requires installing the Remote Server Administration Tools on non-server releases of Windows." + description "Use the windows_feature_powershell resource to add, remove, or entirely delete Windows features and roles using PowerShell. This resource offers significant speed benefits over the windows_feature_dism resource, but requires installation of the Remote Server Administration Tools on non-server releases of Windows." introduced "14.0" property :feature_name, [Array, String], |