puppet-bolt: Set GEM_PATH (#1665)

Like GEM_HOME, GEM_PATH needs to be reset to use the puppet-bolt gems.   

TODO
(can we have multiple pre_install keys?)
We also should create a $dir\\gem.bat file that resets GEM_HOME and GEM_PATH
This commit is contained in:
dsisnero 2020-12-14 09:50:04 -07:00 committed by GitHub
parent 8f781e7ccb
commit 356d2823e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@
}
},
"extract_dir": "Puppet Labs\\Bolt",
"pre_install": "Set-Content \"$dir\\bolt.bat\" '@ECHO OFF', 'SETLOCAL', 'SET GEM_HOME=', '%~dp0bin\\bolt.bat %*' -Encoding Ascii",
"pre_install": "Set-Content \"$dir\\bolt.bat\" '@ECHO OFF', 'SETLOCAL', 'SET GEM_HOME=','SET GEM_PATH=', '%~dp0bin\\bolt.bat %*' -Encoding Ascii",
"post_install": [
"if (Test-Path \"$dir\\share\\install-tarballs\\ruby*.tgz\") {",
" info 'Extract tarball of gems...'",