subcommand restructure and bashstyle refactor. closes #1579

This commit is contained in:
Michael S. Hobbs authored and Michael Hobbs committed 2016-03-03 22:11:35 -08:00
1 parent 76e27f0333
commit 89f289b433
105 files changed
+1969 -1306

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
events_on_cmd() {
local desc="enables dokku events logger"
local cmd="events:on"
echo "Enabling dokku events logger"
[[ -d $DOKKU_ROOT/.dokkurc ]] || mkdir -p "$DOKKU_ROOT/.dokkurc"
echo "export DOKKU_EVENTS=1" > "$DOKKU_ROOT/.dokkurc/DOKKU_EVENTS"
}
events_on_cmd "$@"