-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pact publish): add pact-publish cli
- Loading branch information
Showing
10 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.4.4 | ||
1.5.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ source 'http://rubygems.org' | |
|
||
gem "pact-mock_service" | ||
gem "pact-provider-verifier" | ||
gem "pact_broker-client" |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
|
||
SET RUNNING_PATH=%~dp0 | ||
CALL :RESOLVE "%RUNNING_PATH%\.." ROOT_PATH | ||
|
||
:: Tell Bundler where the Gemfile and gems are. | ||
set "BUNDLE_GEMFILE=%ROOT_PATH%\lib\vendor\Gemfile" | ||
set BUNDLE_IGNORE_CONFIG= | ||
|
||
:: Run the actual app using the bundled Ruby interpreter, with Bundler activated. | ||
@"%ROOT_PATH%\lib\ruby\bin\ruby.bat" -rbundler/setup -I%ROOT_PATH%\lib\app\lib "%ROOT_PATH%\lib\app\pact-publish.rb" %* | ||
|
||
GOTO :EOF | ||
|
||
:RESOLVE | ||
SET %2=%~f1 | ||
GOTO :EOF |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'pact_broker/client/cli/publish' | ||
PactBroker::Client::CLI::Publish.start |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
SOURCE="${BASH_SOURCE[0]}" | ||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | ||
TARGET="$(readlink "$SOURCE")" | ||
if [[ $TARGET == /* ]]; then | ||
SOURCE="$TARGET" | ||
else | ||
DIR="$( dirname "$SOURCE" )" | ||
SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | ||
fi | ||
done | ||
RDIR="$( dirname "$SOURCE" )" | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | ||
|
||
# Figure out where this script is located. | ||
LIBDIR="`cd \"$DIR\" && cd ../lib && pwd`" | ||
|
||
# Tell Bundler where the Gemfile and gems are. | ||
export BUNDLE_GEMFILE="$LIBDIR/vendor/Gemfile" | ||
unset BUNDLE_IGNORE_CONFIG | ||
unset RUBYGEMS_GEMDEPS # See https://github.com/pact-foundation/pact-mock-service-npm/issues/16 | ||
|
||
# Run the actual app using the bundled Ruby interpreter, with Bundler activated. | ||
exec "$LIBDIR/ruby/bin/ruby" -rbundler/setup -rreadline -I$LIBDIR/app/lib "$LIBDIR/app/pact-publish.rb" $@ |
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