summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-02-13 11:48:50 -0800
committerGitHub <noreply@github.com>2021-02-13 11:48:50 -0800
commitd4bf93b67404e4b88e2fb57814627ee263903168 (patch)
treefe7d681a5b2fedc4a9c19174bfe48a4535b41086
parentf8a2d0a60fe451596c80de6d640088a7f4e8f1c4 (diff)
parent6d83ef57f6e7849c5a38bbb7ed9961bcd1f97e64 (diff)
downloadchef-d4bf93b67404e4b88e2fb57814627ee263903168.tar.gz
Merge pull request #11040 from floh96/patch-1
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/powershell_script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/powershell_script.rb b/lib/chef/resource/powershell_script.rb
index eb72518009..b0be81feaa 100644
--- a/lib/chef/resource/powershell_script.rb
+++ b/lib/chef/resource/powershell_script.rb
@@ -27,7 +27,7 @@ class Chef
provides :powershell_script, os: "windows"
description <<~DESC
- Use the **powershell_script** resource to execute a script using the Windows PowerShell interpreter, much like how the script and script-based resources **bash**, **csh**, **perl**, **python**, and **ruby** are used. The **powershell_script** resource is specific to the Microsoft Windows platform, but may use both the the Windows PowerShell interpreter or the PowerShell Core (pwsh) interpreter as of Chef Infra Client 16.6 and later.
+ Use the **powershell_script** resource to execute a script using the Windows PowerShell interpreter, much like how the script and script-based resources **bash**, **csh**, **perl**, **python**, and **ruby** are used. The **powershell_script** resource is specific to the Microsoft Windows platform, but may use both the Windows PowerShell interpreter or the PowerShell Core (pwsh) interpreter as of Chef Infra Client 16.6 and later.
The **powershell_script** resource creates and executes a temporary file rather than running the command inline. Commands that are executed with this resource are (by their nature) not idempotent, as they are typically unique to the environment in which they are run. Use `not_if` and `only_if` conditionals to guard this resource for idempotence.
DESC