Move tar functions into sourceable functions file
This commit is contained in:
1 parent
2cb20f3fd0
commit
aca2540651
5 files changed
+74
-71
No files matched your search
@@ -1,15 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
|
||||
tar_from_cmd() {
|
||||
declare desc="deploys app from tarball at URL via command line"
|
||||
local cmd="tar:from"
|
||||
verify_app_name "$2"
|
||||
local APP=$2
|
||||
local URL=$3
|
||||
shift 3
|
||||
curl -# --insecure -L "$URL" | dokku tar:in "$APP" "$@"
|
||||
}
|
||||
source "$PLUGIN_AVAILABLE_PATH/tar/functions"
|
||||
|
||||
tar_from_cmd "$@"
|
||||
Reference in new issue
Block a user