948aff1f02
Fix all of the bashate failures. Also, bashate will install its negative tests in its virtualenv, so we need to generate a list of files to pass to bashate that excludes .tox/ Change-Id: I55559bf6137f705aec9a7f277928ad8d4cadc2ca
40 lines
659 B
Bash
40 lines
659 B
Bash
#!/bin/bash -e
|
|
#
|
|
# Site deployment tool
|
|
#
|
|
# Commands:
|
|
# init @sitealias http://example.com/source.tar.gz
|
|
# status @sitealias
|
|
# update @sitelias http://example.com/source.tar.gz
|
|
# rollback @sitealias
|
|
#
|
|
#
|
|
|
|
|
|
|
|
TOP_DIR=$(cd $(dirname "$0") && pwd)
|
|
source $TOP_DIR/functions
|
|
|
|
if [ ! -r $TOP_DIR/deployrc ]; then
|
|
echo "ERROR: missing deployrc - did you grab more than just deploy.sh?"
|
|
exit 1
|
|
fi
|
|
source $TOP_DIR/deployrc
|
|
|
|
command="${1}"
|
|
case $command in
|
|
init)
|
|
site_init ${2}
|
|
;;
|
|
status)
|
|
site_status ${2}
|
|
;;
|
|
update)
|
|
site_update ${2}
|
|
;;
|
|
*)
|
|
print_help
|
|
exit 1
|
|
;;
|
|
esac
|