feat: implement first-pass at networking plugin

Implements help, `rebuild`, and `rebuildall` command.

Refs #2403
This commit is contained in:
Jose Diaz-Gonzalez
2017-04-21 01:51:32 -06:00
committed by Michael Hobbs
parent 8be92d9739
commit ec9b8be5f8
8 changed files with 242 additions and 0 deletions

15
plugins/network/commands Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
[[ " help network:help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
source "$PLUGIN_AVAILABLE_PATH/network/internal-functions"
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
case "$1" in
help | network:help)
network_help_cmd "$@"
;;
*)
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
;;
esac