From 1b34688d1c94e9eadc0541b9132b763c7aedd32e Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Sat, 6 Feb 2021 21:24:45 -0800 Subject: Expand windows_env resource description Signed-off-by: Tim Smith --- lib/chef/resource/windows_env.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chef/resource/windows_env.rb b/lib/chef/resource/windows_env.rb index 0e23922b3a..a714ef5aaa 100644 --- a/lib/chef/resource/windows_env.rb +++ b/lib/chef/resource/windows_env.rb @@ -19,6 +19,7 @@ require_relative "../resource" require_relative "../mixin/windows_env_helper" +require "chef-utils/dist" unless defined?(ChefUtils::Dist) class Chef class Resource @@ -28,7 +29,7 @@ class Chef provides :windows_env provides :env # backwards compat with the pre-Chef 14 resource name - 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." + 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.\nThis resource was previously called the **env** resource; its name was updated in #{ChefUtils::Dist::Infra::PRODUCT} 14.0 to reflect the fact that only Windows is supported. Existing cookbooks using `env` will continue to function, but should be updated to use the new name. Note: On UNIX-based systems, the best way to manipulate environment keys is with the `ENV` variable in Ruby; however, this approach does not have the same permanent effect as using the windows_env resource." examples <<~DOC **Set an environment variable**: -- cgit v1.2.1