Commit 6761fcae authored by Thomas Powell's avatar Thomas Powell
Browse files

pwsh

parent 436c0fd9
......@@ -2,10 +2,13 @@ require 'chef-powershell'
include ChefPowerShell::ChefPowerShellModule::PowerShellExec
puts powershell_exec!('gci', :pwsh).result
puts 'pwsh exec'
puts powershell_exec!('gci').result
puts 'vanilla exec'
cmd = ChefPowerShell::PowerShell.new('gci')
puts cmd.result
puts 'all exec'
case ARGV[0]
when /pwsh/
puts powershell_exec!('gci', :pwsh).result
when /default/
puts powershell_exec!('gci').result
when /object/
cmd = ChefPowerShell::PowerShell.new('gci')
puts cmd.result
end
......@@ -15,4 +15,12 @@ Write-Output "--- bundle install"
bundle config set --local without 'omnibus_package'
bundle install --jobs=3 --retry=3
$env:PATH = "C:\Program Files (x86)\Uru;" + $env:PATH
bundle exec ruby .\.expeditor\scripts\more_basic_powershell.rb
Write-Output "--- pwsh"
bundle exec ruby .\.expeditor\scripts\more_basic_powershell.rb pwsh
Write-Output "--- default"
bundle exec ruby .\.expeditor\scripts\more_basic_powershell.rb default
Write-Output "--- object"
bundle exec ruby .\.expeditor\scripts\more_basic_powershell.rb object
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment