From 672ce0d9111939cc28e909fbcc56802c5b82f765 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 21 Sep 2015 15:13:33 -0300 Subject: Rename deploy to download --- templates/drupal.sh.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 665dea2..36e0650 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -132,9 +132,9 @@ function drupal_update { } # Deploy a fresh drupal tree -function drupal_deploy { +function drupal_download { if [ -z "$1" ]; then - echo "Usage: `basename $0` deploy [--upgrade]" + echo "Usage: `basename $0` download [--upgrade]" exit 1 fi @@ -202,7 +202,7 @@ function drupal_upgrade { 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 @@ -272,7 +272,7 @@ function drupal_make { 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 @@ -336,7 +336,7 @@ function drupal_install { 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 @@ -410,7 +410,7 @@ EOF # Main procedure if [ -z "$1" ]; then - echo "Usage: `basename $0` [arguments]" + echo "Usage: `basename $0` [arguments]" exit 1 elif [ "$1" == "cron" ]; then drupal_iterate cron @@ -418,9 +418,9 @@ elif [ "$1" == "cron-update" ]; then 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 -- cgit v1.2.3