Move tar functions into sourceable functions file

This commit is contained in:
Jose Diaz-Gonzalez authored and Michael Hobbs committed 2016-06-17 13:55:43 -07:00
1 parent 2cb20f3fd0
commit aca2540651
5 files changed
+74 -71

No files matched your search

+1 -11
View File
@@ -1,15 +1,5 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
tar_in_cmd() {
declare desc="deploys app from tarball on STDIN via command line"
local cmd="tar:in"
local APP="$2"
verify_app_name "$2"
tee "$DOKKU_ROOT/$APP/src.tar" | wc -c
plugn trigger receive-app "$APP"
}
source "$PLUGIN_AVAILABLE_PATH/tar/functions"
tar_in_cmd "$@"