holmes/scripts/dominant/commit-base-fixture.sh
Andrew Mayorov c05e83a1b2
Unquote WOORL expansion to allow extra cli args (#60)
* Hack my way out of no-ws-in-filename problem
2019-07-16 19:08:28 +03:00

31 lines
937 B
Bash
Executable File

#!/bin/sh
set -e
CWD="$(dirname $0)"
DAMSEL="${CWD}/../../damsel"
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[@]:-woorl}" $* \
-s "${DAMSEL}/proto/domain_config.thrift" \
"http://${DOMINANT:-dominant}:8022/v1/domain/repository" \
Repository Commit 0 "${FIXTURE}"
esac