]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Rename deploy to download
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Sep 2015 18:13:33 +0000 (15:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 21 Sep 2015 18:13:33 +0000 (15:13 -0300)
templates/drupal.sh.erb

index 665dea2159f93e7631a2fb76df3fa7c5069e2e3d..36e0650cd8cf422337e337632036fd02081b6917 100644 (file)
@@ -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 <version> [--upgrade]"
+    echo "Usage: `basename $0` download <version> [--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` <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
@@ -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