subcommand restructure and bashstyle refactor. closes #1579

This commit is contained in:
Michael S. Hobbs
2016-03-01 13:26:35 -08:00
committed by Michael Hobbs
parent 76e27f0333
commit 89f289b433
105 changed files with 1969 additions and 1306 deletions

15
plugins/tar/subcommands/from Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
tar_from_cmd() {
local 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" "$@"
}
tar_from_cmd "$@"