]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Adding 'run' action to drupal script
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Mar 2010 13:43:58 +0000 (10:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Mar 2010 13:43:58 +0000 (10:43 -0300)
templates/drupal.sh.erb

index 3a10864dde5b1378d44bceb1fe0a30e00a02a9a8..85ba71a96f9598dd8788f8d27f68619293fac88f 100644 (file)
@@ -146,7 +146,7 @@ function drupal_upgrade {
 
 # Main procedure
 if [ -z "$1" ]; then
-  echo "Usage: `basename $0` <cron|deploy|update|updatedb|upgrade> [arguments]"
+  echo "Usage: `basename $0` <cron|deploy|update|updatedb|upgrade|run> [arguments]"
   exit 1
 elif [ "$1" == "cron" ]; then
   drupal_iterate cron
@@ -162,4 +162,7 @@ elif [ "$1" == "updatedb" ]; then
 elif [ "$1" == "upgrade" ]; then
   shift
   drupal_upgrade $*
+elif [ "$1" == "run" ]; then
+  shift
+  drupal_iterate $*
 fi