forked from pact-foundation/pact-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpact-broker.bat
More file actions
30 lines (24 loc) · 745 Bytes
/
Copy pathpact-broker.bat
File metadata and controls
30 lines (24 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
SET RUNNING_PATH=%~dp0
CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH
IF NOT DEFINED PACT_CLI_LEGACY (
IF "%~1"=="" (
%RUNNING_PATH%pact.exe broker --help
EXIT /B %ERRORLEVEL%
) ELSE (
%RUNNING_PATH%pact.exe broker %*
EXIT /B %ERRORLEVEL%
)
)
:: Tell Bundler where the Gemfile and gems are.
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile"
set BUNDLE_IGNORE_CONFIG=
set RUBYGEMS_GEMDEPS=
set BUNDLE_APP_CONFIG=
set BUNDLE_FROZEN=1
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated.
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -E UTF-8 -rbundler/setup -I "%ROOT_PATH%\lib\app\lib" "%ROOT_PATH%\lib\app\pact-broker.rb" %*
GOTO :EOF
:RESOLVE
SET %2=%~f1
GOTO :EOF