mirror of
https://github.com/valitydev/holmes.git
synced 2024-11-06 09:55:19 +00:00
77bfbbf66c
* DC-54: Provide a couple of reasonable defaults in script envs * HG-262: Bind battle-ready providers to their categories (#31)
29 lines
880 B
Bash
Executable File
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
|