forked from puppetlabs/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(puppetlabsGH-2651) Add pwsh_params option to run_script function
This adds a `pwsh_params` option to the `run_script` plan function. The option accepts a hash of named parameters to pass to a PowerShell script, where each key is the name of the parameter. If the `run_script` function is called with both the `arguments` and `pwsh_params` options, Bolt will error and provide a helpful message that both cannot be specified. This also adds a `pwsh_params` key to the YAML plan script step. !feature * **Add `pwsh_params` option to `run_script` plan function** ([puppetlabs#2651](puppetlabs#2651)) The `run_script` plan function now accepts a `pwsh_params` option which can be used to pass named parameters to a PowerShell script.
- Loading branch information
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters