subcommand restructure and bashstyle refactor. closes #1579
This commit is contained in:
committed by
Michael Hobbs
parent
76e27f0333
commit
89f289b433
15
plugins/tar/subcommands/in
Executable file
15
plugins/tar/subcommands/in
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
|
||||
tar_in_cmd() {
|
||||
local 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"
|
||||
}
|
||||
|
||||
tar_in_cmd "$@"
|
||||
Reference in New Issue
Block a user