Closed jpogran closed 3 years ago
Built a MSI from https://github.com/jpogran/bolt/tree/boltbat and installed on Windows 2019.
[ ] C:\Program Files\Puppet Labs\Bolt\bin\bolt.bat
has the same contents as the file in this PR
bolt.bat
file contains the following contents:@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
SET RUBY_EXE_PATH="%~dp0ruby.exe"
@%RUBY_EXE_PATH% "%~dpn0" %*
PATH
environment variable contains C:\Program Files\Puppet Labs\Bolt\bin
I made a 3.0 branch if you want to target that and we can merge, or it's also perfectly fine to just leave this open until we're ready to merge all the 3.0 branches into main.
rebased the 3.0 branch to be even with main, then rebased this so all commits lined up. this should be good to merge into 3.0
Since #2551 merged, rebased 3.0 and this branch so this is ready to merge
Migrate Bolt to
bolt.bat
from a PowerShell functionCreates the files used in https://github.com/puppetlabs/bolt/pull/2532
Closes https://github.com/puppetlabs/bolt/issues/2551
Acceptance Criteria:
After building with vanagon,
bolt
function declaration fromC:\Program Files\WindowsPowerShell\Modules\PuppetBolt\PuppetBolt.psm1
(this is removed in https://github.com/puppetlabs/bolt/pull/2532 but won't be pulled in this PR)The verify the following:
C:\Program Files\Puppet Labs\Bolt\bin\bolt.bat
has the same contents as the file in this PRPATH
environment variable containsC:\Program Files\Puppet Labs\Bolt\bin
bolt
command