initial attempt at plugins

This commit is contained in:
Jeff Lindsay committed 2013-06-30 10:37:32 -05:00
1 parent c08f3233e9
commit 17953fc5a0
7 files changed
+55 -21

No files matched your search

+3 -9
View File
@@ -1,4 +1,5 @@
#!/bin/bash
PLUGIN_PATH="$HOME/.plugins"
set -e; case "$1" in
receive)
APP="$2"; IMAGE="app/$APP"
@@ -51,15 +52,8 @@ set -e; case "$1" in
fi
;;
###
logs)
CONTAINER=$(</home/git/$2/CONTAINER)
docker logs $CONTAINER | tail -n 100
;;
url)
echo "http://$(< "/home/git/$2/HOSTNAME")"
*)
pluginhook commands "$@"
;;
esac