adding some basic help, also as another example of using plugin hooks

This commit is contained in:
Jeff Lindsay committed 2013-06-30 15:51:41 -05:00
1 parent 997d2dd09c
commit 60f29cdb18
3 files changed
+22 -2

No files matched your search

+12 -2
View File
@@ -1,12 +1,12 @@
#!/bin/bash
set -e
export PLUGIN_PATH="/var/lib/dokku/plugins"
export PLUGIN_PATH=${PLUGIN_PATH:="/var/lib/dokku/plugins"}
case "$1" in
receive)
APP="$2"; IMAGE="app/$APP"
echo "-----> Building $APP ..."
cat | dokku build $IMAGE
echo "=====> Build complete!"
echo "-----> Build complete!"
echo "-----> Deploying $APP ..."
dokku deploy $APP $IMAGE
echo "=====> Application deployed:"
@@ -45,6 +45,16 @@ case "$1" in
pluginhook post-deploy $APP $port
;;
plugins) ls -1 -d $PLUGIN_PATH/*/
;;
help)
cat<<EOF | pluginhook commands help | sort
help Print the list of commands
plugins Print active plugins
EOF
;;
*)
pluginhook commands "$@"
;;