Permalink
Browse files

add `rebuild:all` command

  • Loading branch information...
1 parent 191e843 commit 1f4296ed1368a56cce28fb85210ad937aacc3d78 @wrboyce wrboyce committed Jan 12, 2014
Showing with 12 additions and 2 deletions.
  1. +2 −1 README.md
  2. +10 −1 commands
View
@@ -1,3 +1,4 @@
## Dokku plugin to rebuild an app without a git push
-`dokku rebuild <app>`
+`dokku rebuild <app>`
+`dokku rebuild:all`
View
@@ -12,10 +12,19 @@ case "$1" in
REF=$(cat $REPO/refs/heads/master)
cd $REPO && git archive $REF | dokku receive $APP | sed -u "s/^/"$'\e[1G'"/"
;;
+
+ rebuild:all)
+ for app in $(ls -d $DOKKU_ROOT/*/); do
+ APP=$(basename $app);
+ dokku rebuild $APP
+ done
+ ;;
+
help)
cat && cat<<EOF
rebuild <app> Rebuild an app
+ rebuild:all Rebuild all apps
EOF
;;
-
+
esac

0 comments on commit 1f4296e

Please sign in to comment.