We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22446e1 commit 49f58feCopy full SHA for 49f58fe
tunnel
@@ -19,10 +19,22 @@ stopTunnel() {
19
fi
20
}
21
22
-if [ "$1" == "stop" ]; then
+dropTunnel() {
23
stopTunnel
24
- exit
25
-fi
+ cf delete -f $CHISEL_APP_NAME
+}
26
+
27
+restartTunnel() {
28
+ echo "Restarting $CHISEL_APP_NAME"
29
+ cf restart $CHISEL_APP_NAME
30
31
32
+case $1 in
33
+ start) ;; # Just run the script...
34
+ restart) restartTunnel;; # Restart the app, then run the script
35
+ stop) stopTunnel; exit ;;
36
+ drop) dropTunnel; exit ;;
37
+esac
38
39
echo "Starting $CHISEL_APP_NAME forwarding local port $CHISEL_LOCAL_PORT to remote port $CHISEL_REMOTE_PORT"
40
0 commit comments