Skip to content

Commit

Permalink
feat: set PACT_EXECUTING_LANGUAGE to 'unknown' when not set by wrappe…
Browse files Browse the repository at this point in the history
…r language
  • Loading branch information
bethesque committed Mar 18, 2018
1 parent 92f10d7 commit 5f1aa62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/pact-provider-verifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ unset BUNDLE_IGNORE_CONFIG
unset RUBYGEMS_GEMDEPS
export BUNDLE_FROZEN=1

# This removes ruby specific language from the output and ensures
# the output can be parsed cleanly by wrapper languages
[ -z "${PACT_EXECUTING_LANGUAGE}" ] && PACT_EXECUTING_LANGUAGE=unknown

# 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-provider-verifier.rb" "$@"

0 comments on commit 5f1aa62

Please sign in to comment.