aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-21 15:13:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-21 15:13:33 -0300
commit672ce0d9111939cc28e909fbcc56802c5b82f765 (patch)
tree1044c03eade854f2d29bdbca2127020ff1fce1b6
parentec9346d13aff73d6f4358c23b768a1978c131883 (diff)
downloadpuppet-drupal-672ce0d9111939cc28e909fbcc56802c5b82f765.tar.gz
puppet-drupal-672ce0d9111939cc28e909fbcc56802c5b82f765.tar.bz2
Rename deploy to download
-rw-r--r--templates/drupal.sh.erb16
1 files 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 <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