}
# Deploy a fresh drupal tree
-function drupal_deploy {
+function drupal_download {
if [ -z "$1" ]; then
- echo "Usage: `basename $0` deploy <version> [--upgrade]"
+ echo "Usage: `basename $0` download <version> [--upgrade]"
exit 1
fi
cd $BASE
# Deploy a fresh drupal tree
- drupal_deploy $new --upgrade
+ drupal_download $new --upgrade
# Ensure we're in the new drupal folder
cd $BASE/drupal-$new
if [ -e "$makefile" ]; then
if [ ! -e "$base" ]; then
- echo "Please deploy drupal code at $base first"
+ echo "Please download drupal code at $base first"
exit 1
fi
drush dl drush_make
else
# Check installation
if [ ! -e "$BASE/drupal-$series" ]; then
- echo "Please deploy your drupal $series farm first"
+ echo "Please download your drupal $series farm first"
exit 1
fi
# Main procedure
if [ -z "$1" ]; then
- echo "Usage: `basename $0` <cron|deploy|update|updatedb|upgrade|run|make|video-scheduler|install> [arguments]"
+ echo "Usage: `basename $0` <cron|download|update|updatedb|upgrade|run|make|video-scheduler|install> [arguments]"
exit 1
elif [ "$1" == "cron" ]; then
drupal_iterate cron
SILENT="yes"
drupal_iterate pm-refresh &> /dev/null
drupal_iterate cron-update
-elif [ "$1" == "deploy" ]; then
+elif [ "$1" == "download" ] || [ "$1" == "dl" ]; then
shift
- drupal_deploy $*
+ drupal_download $*
elif [ "$1" == "update" ]; then
shift
drupal_iterate pm-refresh