initial attempt at plugins
This commit is contained in:
1 parent
c08f3233e9
commit
17953fc5a0
7 files changed
+55
-21
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user