export PACT_BROKER_BASE_URL=${PACT_BROKER_BASE_URL:-"http://localhost:9292"}
export PACT_BROKER_TOKEN=${PACT_BROKER_TOKEN:-"localhost"}
#export PACT_BROKER_FEATURES=publish_pacts_using_old_api

# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
#   --uuid d40f38c3-aaa3-47f5-9161-95c07bc16b14 \
#   --request POST \
#   --description "foo webhook" \
#   --contract-published

# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
#   --uuid d40f38c3-aaa3-47f5-9161-95csfadfsd7 \
#   --description "This is quite a long description for a webhook that I hope will be truncated" \
#   --request POST \
#   --contract-published

# bundle exec bin/pact-broker publish spec/pacts/pact_broker_client-pact_broker.json spec/fixtures/foo-bar.json \
#   --consumer-app-version 1.2.12 \
#   --broker-base-url http://localhost:9292 \
#    --broker-username localhost --broker-password localhost \
#     --auto-detect-version-properties \
#     --build-url http://mybuild \
#     --branch master --tag foo5

# bundle exec bin/pact-broker create-or-update-webhook http://localhost:9393 \
#   --uuid d40f38c3-aaa3-47f5-9161-95c07bc16555 \
#   --provider Bar \
#   --request POST \
#   --contract-published


bundle exec bin/pact-broker publish script/foo-bar.json \
  --consumer-app-version 1.2.26 \
    --auto-detect-version-properties \
    --build-url http://mybuild \
    --branch master --tag foo5 --tag foo6

