summaryrefslogtreecommitdiff
path: root/spec/support/platform_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r--spec/support/platform_helpers.rb5
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