updated the API, which includes countPercolate and mpercolate methods.

This commit is contained in:
Spencer Alger
2014-01-20 15:44:16 -07:00
parent 3f45f93f81
commit cef934b265
6 changed files with 365 additions and 25 deletions

View File

@ -81,10 +81,17 @@ function manage_es {
case "$DO" in
reinstall)
if [ -x "$ES_BIN" ]; then
echo "removing $ES_VERSION"
rm -rf ${SNAPSHOTS}/${ES_VERSION}*
fi
manage_es install $ES_BRANCH $ES_RELEASE
;;
install)
if [ ! -x "$ES_BIN" ]; then
echo "Downloading Elasticsearch $ES_VERSION"
call rm -rf ${SNAPSHOTS}/${ES_VERSION}*
rm -rf ${SNAPSHOTS}/${ES_VERSION}*
call curl --silent -O $ES_URL
unzip -q elasticsearch-*.zip
rm elasticsearch-*.zip
@ -108,11 +115,11 @@ function manage_es {
return 1
else
echo "PID file was left behind by ES"
call rm $PIDFILE
rm $PIDFILE
fi
fi
./scripts/es.sh install $ES_BRANCH $ES_RELEASE
manage_es install $ES_BRANCH $ES_RELEASE
if [ ! -x "$ES_BIN" ]; then
echo "Unable to find elasticsearch executable"

View File

@ -18,5 +18,9 @@ fi
source scripts/_utils.sh
if [[ -z "$ES_NODE_NAME" ]]; then
export ES_NODE_NAME="elasticsearch_js_test_runner"
fi
manage_es $*
exit $?