summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-09-14 16:35:56 -0700
committerTim Smith <tsmith84@gmail.com>2021-09-14 16:46:10 -0700
commitaa2de2248e3f871532b32fdbfab0fe33b12dfb97 (patch)
tree299f4596f67be9560d3bb12a2e9e4c349a873dc4
parent73a809b88292a980dbd0b6e7998c0b56cde80b2c (diff)
downloadchef-aa2de2248e3f871532b32fdbfab0fe33b12dfb97.tar.gz
Add registry_key note to code
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/registry_key.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/chef/resource/registry_key.rb b/lib/chef/resource/registry_key.rb
index 6c17146fcb..df10820fd8 100644
--- a/lib/chef/resource/registry_key.rb
+++ b/lib/chef/resource/registry_key.rb
@@ -18,6 +18,7 @@
require_relative "../resource"
require_relative "../digester"
+require "chef-utils/dist" unless defined?(ChefUtils::Dist)
class Chef
class Resource
@@ -26,7 +27,7 @@ class Chef
provides(:registry_key) { true }
- description "Use the **registry_key** resource to create and delete registry keys in Microsoft Windows."
+ description "Use the **registry_key** resource to create and delete registry keys in Microsoft Windows. Note: 64-bit versions of Microsoft Windows have a 32-bit compatibility layer in the registry that reflects and redirects certain keys (and their values) into specific locations (or logical views) of the registry hive.\n\n#{ChefUtils::Dist::Infra::PRODUCT} can access any reflected or redirected registry key. The machine architecture of the system on which #{ChefUtils::Dist::Infra::PRODUCT} is running is used as the default (non-redirected) location. Access to the SysWow64 location is redirected must be specified. Typically, this is only necessary to ensure compatibility with 32-bit applications that are running on a 64-bit operating system.\n\nFor more information, see: [Registry Reflection](https://docs.microsoft.com/en-us/windows/win32/winprog64/registry-reflection)."
examples <<~'DOC'
**Create a registry key**
@@ -66,7 +67,7 @@ class Chef
end
```
- **Set proxy settings to be the same as those used by Chef Infra Client**
+ **Set proxy settings to be the same as those used by #{ChefUtils::Dist::Infra::PRODUCT}**
```ruby
proxy = URI.parse(Chef::Config[:http_proxy])
@@ -115,7 +116,7 @@ class Chef
end
```
- Note: Be careful when using the :delete_key action with the recursive attribute. This will delete the registry key, all of its values and all of the names, types, and data associated with them. This cannot be undone by Chef Infra Client.
+ Note: Be careful when using the :delete_key action with the recursive attribute. This will delete the registry key, all of its values and all of the names, types, and data associated with them. This cannot be undone by #{ChefUtils::Dist::Infra::PRODUCT}.
DOC
state_attrs :values