diff options
author | mwrock <matt@mattwrock.com> | 2020-10-01 14:58:59 -0700 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-10-01 14:58:59 -0700 |
commit | a790d5997d3b4cb9d3ffa8462c8b92af3be91ebd (patch) | |
tree | 718a00ce5ed4b9cba0be61e965cb4efad89ccfa1 /spec/support/platform_helpers.rb | |
parent | 6b077d998a0c3168cb7edb19d9d70d122ecafc95 (diff) | |
download | chef-ps_out.tar.gz |
add interpreter arg to powershell_out allowing it to call pwsh.exeps_out
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r-- | spec/support/platform_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 51a9299497..6e97230b11 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -245,3 +245,8 @@ def choco_installed? result = ShellHelpers.powershell_out("choco --version") result.stderr.empty? ? true : false end + +def pwsh_installed? + result = ShellHelpers.powershell_out("pwsh.exe --version") + result.stderr.empty? ? true : false +end |