Last active
August 29, 2015 14:05
-
-
Save epu/f7c2afc689b1c069173d to your computer and use it in GitHub Desktop.
because sometimes a fast shell wrapper is better than waiting for bugfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: berks in the chefdk asplodes when one tries to suppress validation in .berkshelf/config.json | |
:: the current 'workaround' is to set an environment variable, or switch the generated url to http. | |
:: but, they ship the pem with the download. | |
@setlocal | |
@set OPSCODE_DEFAULT_DIR=C:\opscode | |
:: you could do fancy detection here. Tag, you're it. | |
@set OPSCODE_DEFAULT_CHEFDK_DIR=%OPSCODE_DEFAULT_DIR%\chefdk | |
@set OPSCODE_DEFAULT_SSL_CERT_FILE=%OPSCODE_DEFAULT_CHEFDK_DIR%\embedded\ssl\certs\cacert.pem | |
:: only set if not defined already. | |
@if exist "%OPSCODE_DEFAULT_SSL_CERT_FILE%" ( | |
@if "" equ "%SSL_CERT_FILE%" ( | |
@set SSL_CERT_FILE=%OPSCODE_DEFAULT_SSL_CERT_FILE% | |
) | |
) | |
@call berks.bat %* | |
@exit /b %ERRORLEVEL% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment