holmes/scripts/dominant/commit-base-fixture.sh
Andrew Mayorov 77bfbbf66c HG-262: Specify payments provision terms (#33)
* DC-54: Provide a couple of reasonable defaults in script envs

* HG-262: Bind battle-ready providers to their categories (#31)
2017-09-12 12:58:02 +03:00

29 lines
880 B
Bash
Executable File

#!/bin/sh
set -e
SCRIPTNAME=$(basename $0)
export CURDIR="$(dirname ${0})"
export LIBDIR="${CURDIR}/../lib"
case "$1" in
"-h"|"--help" )
echo -e "Estabilish basic system domain configuration from the ground up. Useful for setting up" \
"fresh development environment."
echo
echo -e "Usage: ${SCRIPTNAME} [woorl_opts]"
echo -e " -h, --help help"
echo
echo -e "More information:"
echo -e " https://github.com/rbkmoney/damsel/blob/a603319/proto/payment_processing.thrift"
exit 0
;;
* )
FIXTURE="$(${LIBDIR}/template.sh ${CURDIR}/base-fixture.commit.json.tpl $*)"
woorl $* \
-s damsel/proto/domain_config.thrift \
http://${DOMINANT:-dominant}:${THRIFT_PORT:-8022}/v1/domain/repository \
Repository Commit 0 "${FIXTURE}"
esac