parent
809ee6e68b
commit
d936080393
255
abra
255
abra
@ -18,7 +18,7 @@ Usage:
|
||||
abra [options] app (list|ls) [--status] [--server=<server>] [--type=<type>]
|
||||
abra [options] app new [--server=<server>] [--domain=<domain>] [--app-name=<app_name>] [--pass] [--secrets] <type>
|
||||
abra [options] app <app> backup (<service>|--all)
|
||||
abra [options] app <app> deploy [--update] [--force] [--skip-version-check] [<version>]
|
||||
abra [options] app <app> deploy [--update] [--force] [--skip-version-check] [--no-domain-poll] [<version>]
|
||||
abra [options] app <app> check
|
||||
abra [options] app <app> version
|
||||
abra [options] app <app> config
|
||||
@ -163,120 +163,122 @@ eval "var_$1+=($value)"; else eval "var_$1=$value"; fi; return 0; fi; done
|
||||
return 1; }; stdout() { printf -- "cat <<'EOM'\n%s\nEOM\n" "$1"; }; stderr() {
|
||||
printf -- "cat <<'EOM' >&2\n%s\nEOM\n" "$1"; }; error() {
|
||||
[[ -n $1 ]] && stderr "$1"; stderr "$usage"; _return 1; }; _return() {
|
||||
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2296}
|
||||
usage=${DOC:40:1687}; digest=4e473
|
||||
shorts=(-e -d -b -n -v -s -C -U -h '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--env --debug --branch --no-prompt --verbose --stack --skip-check --skip-update --help --status --server --type --domain --app-name --pass --secrets --all --update --force --skip-version-check --volumes --no-tty --user --dev)
|
||||
argcounts=(1 0 1 0 0 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 0); node_0(){
|
||||
value __env 0; }; node_1(){ switch __debug 1; }; node_2(){ value __branch 2; }
|
||||
node_3(){ switch __no_prompt 3; }; node_4(){ switch __verbose 4; }; node_5(){
|
||||
value __stack 5; }; node_6(){ switch __skip_check 6; }; node_7(){
|
||||
switch __skip_update 7; }; node_8(){ switch __help 8; }; node_9(){
|
||||
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2315}
|
||||
usage=${DOC:40:1706}; digest=e328a
|
||||
shorts=(-b -U -h -n -e -s -d -C -v '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
|
||||
longs=(--branch --skip-update --help --no-prompt --env --stack --debug --skip-check --verbose --status --server --type --domain --app-name --pass --secrets --all --update --force --skip-version-check --no-domain-poll --volumes --no-tty --user --dev)
|
||||
argcounts=(1 0 0 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0); node_0(){
|
||||
value __branch 0; }; node_1(){ switch __skip_update 1; }; node_2(){
|
||||
switch __help 2; }; node_3(){ switch __no_prompt 3; }; node_4(){ value __env 4
|
||||
}; node_5(){ value __stack 5; }; node_6(){ switch __debug 6; }; node_7(){
|
||||
switch __skip_check 7; }; node_8(){ switch __verbose 8; }; node_9(){
|
||||
switch __status 9; }; node_10(){ value __server 10; }; node_11(){
|
||||
value __type 11; }; node_12(){ value __domain 12; }; node_13(){
|
||||
value __app_name 13; }; node_14(){ switch __pass 14; }; node_15(){
|
||||
switch __secrets 15; }; node_16(){ switch __all 16; }; node_17(){
|
||||
switch __update 17; }; node_18(){ switch __force 18; }; node_19(){
|
||||
switch __skip_version_check 19; }; node_20(){ switch __volumes 20; }; node_21(){
|
||||
switch __no_tty 21; }; node_22(){ value __user 22; }; node_23(){ switch __dev 23
|
||||
}; node_24(){ value _type_ a; }; node_25(){ value _app_ a; }; node_26(){
|
||||
value _service_ a; }; node_27(){ value _version_ a; }; node_28(){ value _src_ a
|
||||
}; node_29(){ value _dst_ a; }; node_30(){ value _backup_file_ a; }; node_31(){
|
||||
value _args_ a true; }; node_32(){ value _secret_ a; }; node_33(){ value _cmd_ a
|
||||
}; node_34(){ value _data_ a; }; node_35(){ value _command_ a; }; node_36(){
|
||||
value _recipe_ a; }; node_37(){ value _host_ a; }; node_38(){ value _user_ a; }
|
||||
node_39(){ value _port_ a; }; node_40(){ value _provider_ a; }; node_41(){
|
||||
value _subcommands_ a true; }; node_42(){ _command app; }; node_43(){
|
||||
_command list; }; node_44(){ _command ls; }; node_45(){ _command new; }
|
||||
node_46(){ _command backup; }; node_47(){ _command deploy; }; node_48(){
|
||||
_command check; }; node_49(){ _command version; }; node_50(){ _command config; }
|
||||
node_51(){ _command cp; }; node_52(){ _command logs; }; node_53(){ _command ps
|
||||
}; node_54(){ _command restore; }; node_55(){ _command rm; }; node_56(){
|
||||
_command delete; }; node_57(){ _command run; }; node_58(){ _command rollback; }
|
||||
node_59(){ _command secret; }; node_60(){ _command generate; }; node_61(){
|
||||
_command insert; }; node_62(){ _command undeploy; }; node_63(){ _command recipe
|
||||
}; node_64(){ _command release; }; node_65(){ _command versions; }; node_66(){
|
||||
_command server; }; node_67(){ _command add; }; node_68(){ _command init; }
|
||||
node_69(){ _command apps; }; node_70(){ _command upgrade; }; node_71(){
|
||||
_command doctor; }; node_72(){ _command help; }; node_73(){
|
||||
optional 0 1 2 3 4 5 6 7 8; }; node_74(){ optional 73; }; node_75(){
|
||||
either 43 44; }; node_76(){ required 75; }; node_77(){ optional 9; }; node_78(){
|
||||
optional 10; }; node_79(){ optional 11; }; node_80(){ required 74 42 76 77 78 79
|
||||
}; node_81(){ optional 12; }; node_82(){ optional 13; }; node_83(){ optional 14
|
||||
}; node_84(){ optional 15; }; node_85(){ required 74 42 45 78 81 82 83 84 24; }
|
||||
node_86(){ either 26 16; }; node_87(){ required 86; }; node_88(){
|
||||
required 74 42 25 46 87; }; node_89(){ optional 17; }; node_90(){ optional 18; }
|
||||
node_91(){ optional 19; }; node_92(){ optional 27; }; node_93(){
|
||||
required 74 42 25 47 89 90 91 92; }; node_94(){ required 74 42 25 48; }
|
||||
node_95(){ required 74 42 25 49; }; node_96(){ required 74 42 25 50; }
|
||||
node_97(){ required 74 42 25 51 28 29; }; node_98(){ optional 26; }; node_99(){
|
||||
required 74 42 25 52 98; }; node_100(){ required 74 42 25 53; }; node_101(){
|
||||
required 74 42 25 54 87; }; node_102(){ either 55 56; }; node_103(){
|
||||
required 102; }; node_104(){ optional 20; }; node_105(){
|
||||
required 74 42 25 103 104 84; }; node_106(){ optional 30; }; node_107(){
|
||||
required 74 42 25 54 26 106; }; node_108(){ optional 21; }; node_109(){
|
||||
optional 22; }; node_110(){ oneormore 31; }; node_111(){
|
||||
required 74 42 25 57 108 109 26 110; }; node_112(){ required 74 42 25 58 92; }
|
||||
node_113(){ required 32 27; }; node_114(){ either 113 16; }; node_115(){
|
||||
required 114; }; node_116(){ optional 33; }; node_117(){
|
||||
required 74 42 25 59 60 115 116 83; }; node_118(){
|
||||
required 74 42 25 59 61 32 27 34 83; }; node_119(){ either 32 16; }; node_120(){
|
||||
required 119; }; node_121(){ required 74 42 25 59 103 120 83; }; node_122(){
|
||||
required 74 42 25 62; }; node_123(){ optional 110; }; node_124(){
|
||||
required 74 42 25 35 123; }; node_125(){ required 74 63 44; }; node_126(){
|
||||
required 74 63 36 64 90; }; node_127(){ required 74 63 36 65; }; node_128(){
|
||||
optional 38; }; node_129(){ optional 39; }; node_130(){
|
||||
required 74 66 67 37 128 129; }; node_131(){ required 74 66 45 40; }
|
||||
node_132(){ required 74 66 76; }; node_133(){ required 74 66 37 55; }
|
||||
node_134(){ required 74 66 37 68; }; node_135(){ required 74 66 37 69 77; }
|
||||
node_136(){ optional 23; }; node_137(){ required 74 70 136; }; node_138(){
|
||||
required 74 49; }; node_139(){ required 74 71; }; node_140(){ oneormore 41; }
|
||||
node_141(){ optional 140; }; node_142(){ required 74 72 141; }; node_143(){
|
||||
required 74; }; node_144(){
|
||||
either 80 85 88 93 94 95 96 97 99 100 101 105 107 111 112 117 118 121 122 124 125 126 127 130 131 132 133 134 135 137 138 139 142 143
|
||||
}; node_145(){ required 144; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1687}" >&2
|
||||
exit 1; }'; unset var___env var___debug var___branch var___no_prompt \
|
||||
var___verbose var___stack var___skip_check var___skip_update var___help \
|
||||
var___status var___server var___type var___domain var___app_name var___pass \
|
||||
var___secrets var___all var___update var___force var___skip_version_check \
|
||||
var___volumes var___no_tty var___user var___dev var__type_ var__app_ \
|
||||
var__service_ var__version_ var__src_ var__dst_ var__backup_file_ var__args_ \
|
||||
var__secret_ var__cmd_ var__data_ var__command_ var__recipe_ var__host_ \
|
||||
var__user_ var__port_ var__provider_ var__subcommands_ var_app var_list var_ls \
|
||||
var_new var_backup var_deploy var_check var_version var_config var_cp var_logs \
|
||||
var_ps var_restore var_rm var_delete var_run var_rollback var_secret \
|
||||
var_generate var_insert var_undeploy var_recipe var_release var_versions \
|
||||
var_server var_add var_init var_apps var_upgrade var_doctor var_help
|
||||
parse 145 "$@"; local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__env" \
|
||||
"${prefix}__debug" "${prefix}__branch" "${prefix}__no_prompt" \
|
||||
"${prefix}__verbose" "${prefix}__stack" "${prefix}__skip_check" \
|
||||
"${prefix}__skip_update" "${prefix}__help" "${prefix}__status" \
|
||||
switch __skip_version_check 19; }; node_20(){ switch __no_domain_poll 20; }
|
||||
node_21(){ switch __volumes 21; }; node_22(){ switch __no_tty 22; }; node_23(){
|
||||
value __user 23; }; node_24(){ switch __dev 24; }; node_25(){ value _type_ a; }
|
||||
node_26(){ value _app_ a; }; node_27(){ value _service_ a; }; node_28(){
|
||||
value _version_ a; }; node_29(){ value _src_ a; }; node_30(){ value _dst_ a; }
|
||||
node_31(){ value _backup_file_ a; }; node_32(){ value _args_ a true; }
|
||||
node_33(){ value _secret_ a; }; node_34(){ value _cmd_ a; }; node_35(){
|
||||
value _data_ a; }; node_36(){ value _command_ a; }; node_37(){ value _recipe_ a
|
||||
}; node_38(){ value _host_ a; }; node_39(){ value _user_ a; }; node_40(){
|
||||
value _port_ a; }; node_41(){ value _provider_ a; }; node_42(){
|
||||
value _subcommands_ a true; }; node_43(){ _command app; }; node_44(){
|
||||
_command list; }; node_45(){ _command ls; }; node_46(){ _command new; }
|
||||
node_47(){ _command backup; }; node_48(){ _command deploy; }; node_49(){
|
||||
_command check; }; node_50(){ _command version; }; node_51(){ _command config; }
|
||||
node_52(){ _command cp; }; node_53(){ _command logs; }; node_54(){ _command ps
|
||||
}; node_55(){ _command restore; }; node_56(){ _command rm; }; node_57(){
|
||||
_command delete; }; node_58(){ _command run; }; node_59(){ _command rollback; }
|
||||
node_60(){ _command secret; }; node_61(){ _command generate; }; node_62(){
|
||||
_command insert; }; node_63(){ _command undeploy; }; node_64(){ _command recipe
|
||||
}; node_65(){ _command release; }; node_66(){ _command versions; }; node_67(){
|
||||
_command server; }; node_68(){ _command add; }; node_69(){ _command init; }
|
||||
node_70(){ _command apps; }; node_71(){ _command upgrade; }; node_72(){
|
||||
_command doctor; }; node_73(){ _command help; }; node_74(){
|
||||
optional 0 1 2 3 4 5 6 7 8; }; node_75(){ optional 74; }; node_76(){
|
||||
either 44 45; }; node_77(){ required 76; }; node_78(){ optional 9; }; node_79(){
|
||||
optional 10; }; node_80(){ optional 11; }; node_81(){ required 75 43 77 78 79 80
|
||||
}; node_82(){ optional 12; }; node_83(){ optional 13; }; node_84(){ optional 14
|
||||
}; node_85(){ optional 15; }; node_86(){ required 75 43 46 79 82 83 84 85 25; }
|
||||
node_87(){ either 27 16; }; node_88(){ required 87; }; node_89(){
|
||||
required 75 43 26 47 88; }; node_90(){ optional 17; }; node_91(){ optional 18; }
|
||||
node_92(){ optional 19; }; node_93(){ optional 20; }; node_94(){ optional 28; }
|
||||
node_95(){ required 75 43 26 48 90 91 92 93 94; }; node_96(){
|
||||
required 75 43 26 49; }; node_97(){ required 75 43 26 50; }; node_98(){
|
||||
required 75 43 26 51; }; node_99(){ required 75 43 26 52 29 30; }; node_100(){
|
||||
optional 27; }; node_101(){ required 75 43 26 53 100; }; node_102(){
|
||||
required 75 43 26 54; }; node_103(){ required 75 43 26 55 88; }; node_104(){
|
||||
either 56 57; }; node_105(){ required 104; }; node_106(){ optional 21; }
|
||||
node_107(){ required 75 43 26 105 106 85; }; node_108(){ optional 31; }
|
||||
node_109(){ required 75 43 26 55 27 108; }; node_110(){ optional 22; }
|
||||
node_111(){ optional 23; }; node_112(){ oneormore 32; }; node_113(){
|
||||
required 75 43 26 58 110 111 27 112; }; node_114(){ required 75 43 26 59 94; }
|
||||
node_115(){ required 33 28; }; node_116(){ either 115 16; }; node_117(){
|
||||
required 116; }; node_118(){ optional 34; }; node_119(){
|
||||
required 75 43 26 60 61 117 118 84; }; node_120(){
|
||||
required 75 43 26 60 62 33 28 35 84; }; node_121(){ either 33 16; }; node_122(){
|
||||
required 121; }; node_123(){ required 75 43 26 60 105 122 84; }; node_124(){
|
||||
required 75 43 26 63; }; node_125(){ optional 112; }; node_126(){
|
||||
required 75 43 26 36 125; }; node_127(){ required 75 64 45; }; node_128(){
|
||||
required 75 64 37 65 91; }; node_129(){ required 75 64 37 66; }; node_130(){
|
||||
optional 39; }; node_131(){ optional 40; }; node_132(){
|
||||
required 75 67 68 38 130 131; }; node_133(){ required 75 67 46 41; }
|
||||
node_134(){ required 75 67 77; }; node_135(){ required 75 67 38 56; }
|
||||
node_136(){ required 75 67 38 69; }; node_137(){ required 75 67 38 70 78; }
|
||||
node_138(){ optional 24; }; node_139(){ required 75 71 138; }; node_140(){
|
||||
required 75 50; }; node_141(){ required 75 72; }; node_142(){ oneormore 42; }
|
||||
node_143(){ optional 142; }; node_144(){ required 75 73 143; }; node_145(){
|
||||
required 75; }; node_146(){
|
||||
either 81 86 89 95 96 97 98 99 101 102 103 107 109 113 114 119 120 123 124 126 127 128 129 132 133 134 135 136 137 139 140 141 144 145
|
||||
}; node_147(){ required 146; }; cat <<<' docopt_exit() {
|
||||
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1706}" >&2
|
||||
exit 1; }'; unset var___branch var___skip_update var___help var___no_prompt \
|
||||
var___env var___stack var___debug var___skip_check var___verbose var___status \
|
||||
var___server var___type var___domain var___app_name var___pass var___secrets \
|
||||
var___all var___update var___force var___skip_version_check \
|
||||
var___no_domain_poll var___volumes var___no_tty var___user var___dev \
|
||||
var__type_ var__app_ var__service_ var__version_ var__src_ var__dst_ \
|
||||
var__backup_file_ var__args_ var__secret_ var__cmd_ var__data_ var__command_ \
|
||||
var__recipe_ var__host_ var__user_ var__port_ var__provider_ var__subcommands_ \
|
||||
var_app var_list var_ls var_new var_backup var_deploy var_check var_version \
|
||||
var_config var_cp var_logs var_ps var_restore var_rm var_delete var_run \
|
||||
var_rollback var_secret var_generate var_insert var_undeploy var_recipe \
|
||||
var_release var_versions var_server var_add var_init var_apps var_upgrade \
|
||||
var_doctor var_help; parse 147 "$@"; local prefix=${DOCOPT_PREFIX:-''}
|
||||
unset "${prefix}__branch" "${prefix}__skip_update" "${prefix}__help" \
|
||||
"${prefix}__no_prompt" "${prefix}__env" "${prefix}__stack" "${prefix}__debug" \
|
||||
"${prefix}__skip_check" "${prefix}__verbose" "${prefix}__status" \
|
||||
"${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__skip_version_check" \
|
||||
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
|
||||
"${prefix}_type_" "${prefix}_app_" "${prefix}_service_" "${prefix}_version_" \
|
||||
"${prefix}_src_" "${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_args_" \
|
||||
"${prefix}_secret_" "${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" \
|
||||
"${prefix}_recipe_" "${prefix}_host_" "${prefix}_user_" "${prefix}_port_" \
|
||||
"${prefix}_provider_" "${prefix}_subcommands_" "${prefix}app" "${prefix}list" \
|
||||
"${prefix}ls" "${prefix}new" "${prefix}backup" "${prefix}deploy" \
|
||||
"${prefix}check" "${prefix}version" "${prefix}config" "${prefix}cp" \
|
||||
"${prefix}logs" "${prefix}ps" "${prefix}restore" "${prefix}rm" \
|
||||
"${prefix}delete" "${prefix}run" "${prefix}rollback" "${prefix}secret" \
|
||||
"${prefix}generate" "${prefix}insert" "${prefix}undeploy" "${prefix}recipe" \
|
||||
"${prefix}release" "${prefix}versions" "${prefix}server" "${prefix}add" \
|
||||
"${prefix}init" "${prefix}apps" "${prefix}upgrade" "${prefix}doctor" \
|
||||
"${prefix}help"; eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
"${prefix}__no_domain_poll" "${prefix}__volumes" "${prefix}__no_tty" \
|
||||
"${prefix}__user" "${prefix}__dev" "${prefix}_type_" "${prefix}_app_" \
|
||||
"${prefix}_service_" "${prefix}_version_" "${prefix}_src_" "${prefix}_dst_" \
|
||||
"${prefix}_backup_file_" "${prefix}_args_" "${prefix}_secret_" \
|
||||
"${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" "${prefix}_recipe_" \
|
||||
"${prefix}_host_" "${prefix}_user_" "${prefix}_port_" "${prefix}_provider_" \
|
||||
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
|
||||
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
|
||||
"${prefix}version" "${prefix}config" "${prefix}cp" "${prefix}logs" \
|
||||
"${prefix}ps" "${prefix}restore" "${prefix}rm" "${prefix}delete" \
|
||||
"${prefix}run" "${prefix}rollback" "${prefix}secret" "${prefix}generate" \
|
||||
"${prefix}insert" "${prefix}undeploy" "${prefix}recipe" "${prefix}release" \
|
||||
"${prefix}versions" "${prefix}server" "${prefix}add" "${prefix}init" \
|
||||
"${prefix}apps" "${prefix}upgrade" "${prefix}doctor" "${prefix}help"
|
||||
eval "${prefix}"'__branch=${var___branch:-}'
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
|
||||
eval "${prefix}"'__help=${var___help:-false}'
|
||||
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
|
||||
eval "${prefix}"'__env=${var___env:-}'
|
||||
eval "${prefix}"'__stack=${var___stack:-}'
|
||||
eval "${prefix}"'__debug=${var___debug:-false}'
|
||||
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
|
||||
eval "${prefix}"'__verbose=${var___verbose:-false}'
|
||||
eval "${prefix}"'__status=${var___status:-false}'
|
||||
eval "${prefix}"'__server=${var___server:-}'
|
||||
eval "${prefix}"'__type=${var___type:-}'
|
||||
@ -288,6 +290,7 @@ eval "${prefix}"'__all=${var___all:-false}'
|
||||
eval "${prefix}"'__update=${var___update:-false}'
|
||||
eval "${prefix}"'__force=${var___force:-false}'
|
||||
eval "${prefix}"'__skip_version_check=${var___skip_version_check:-false}'
|
||||
eval "${prefix}"'__no_domain_poll=${var___no_domain_poll:-false}'
|
||||
eval "${prefix}"'__volumes=${var___volumes:-false}'
|
||||
eval "${prefix}"'__no_tty=${var___no_tty:-false}'
|
||||
eval "${prefix}"'__user=${var___user:-}'
|
||||
@ -339,26 +342,26 @@ eval "${prefix}"'upgrade=${var_upgrade:-false}'
|
||||
eval "${prefix}"'doctor=${var_doctor:-false}'
|
||||
eval "${prefix}"'help=${var_help:-false}'; local docopt_i=1
|
||||
[[ $BASH_VERSION =~ ^4.3 ]] && docopt_i=2; for ((;docopt_i>0;docopt_i--)); do
|
||||
declare -p "${prefix}__env" "${prefix}__debug" "${prefix}__branch" \
|
||||
"${prefix}__no_prompt" "${prefix}__verbose" "${prefix}__stack" \
|
||||
"${prefix}__skip_check" "${prefix}__skip_update" "${prefix}__help" \
|
||||
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
declare -p "${prefix}__branch" "${prefix}__skip_update" "${prefix}__help" \
|
||||
"${prefix}__no_prompt" "${prefix}__env" "${prefix}__stack" "${prefix}__debug" \
|
||||
"${prefix}__skip_check" "${prefix}__verbose" "${prefix}__status" \
|
||||
"${prefix}__server" "${prefix}__type" "${prefix}__domain" \
|
||||
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
|
||||
"${prefix}__update" "${prefix}__force" "${prefix}__skip_version_check" \
|
||||
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
|
||||
"${prefix}_type_" "${prefix}_app_" "${prefix}_service_" "${prefix}_version_" \
|
||||
"${prefix}_src_" "${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_args_" \
|
||||
"${prefix}_secret_" "${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" \
|
||||
"${prefix}_recipe_" "${prefix}_host_" "${prefix}_user_" "${prefix}_port_" \
|
||||
"${prefix}_provider_" "${prefix}_subcommands_" "${prefix}app" "${prefix}list" \
|
||||
"${prefix}ls" "${prefix}new" "${prefix}backup" "${prefix}deploy" \
|
||||
"${prefix}check" "${prefix}version" "${prefix}config" "${prefix}cp" \
|
||||
"${prefix}logs" "${prefix}ps" "${prefix}restore" "${prefix}rm" \
|
||||
"${prefix}delete" "${prefix}run" "${prefix}rollback" "${prefix}secret" \
|
||||
"${prefix}generate" "${prefix}insert" "${prefix}undeploy" "${prefix}recipe" \
|
||||
"${prefix}release" "${prefix}versions" "${prefix}server" "${prefix}add" \
|
||||
"${prefix}init" "${prefix}apps" "${prefix}upgrade" "${prefix}doctor" \
|
||||
"${prefix}help"; done; }
|
||||
"${prefix}__no_domain_poll" "${prefix}__volumes" "${prefix}__no_tty" \
|
||||
"${prefix}__user" "${prefix}__dev" "${prefix}_type_" "${prefix}_app_" \
|
||||
"${prefix}_service_" "${prefix}_version_" "${prefix}_src_" "${prefix}_dst_" \
|
||||
"${prefix}_backup_file_" "${prefix}_args_" "${prefix}_secret_" \
|
||||
"${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" "${prefix}_recipe_" \
|
||||
"${prefix}_host_" "${prefix}_user_" "${prefix}_port_" "${prefix}_provider_" \
|
||||
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
|
||||
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
|
||||
"${prefix}version" "${prefix}config" "${prefix}cp" "${prefix}logs" \
|
||||
"${prefix}ps" "${prefix}restore" "${prefix}rm" "${prefix}delete" \
|
||||
"${prefix}run" "${prefix}rollback" "${prefix}secret" "${prefix}generate" \
|
||||
"${prefix}insert" "${prefix}undeploy" "${prefix}recipe" "${prefix}release" \
|
||||
"${prefix}versions" "${prefix}server" "${prefix}add" "${prefix}init" \
|
||||
"${prefix}apps" "${prefix}upgrade" "${prefix}doctor" "${prefix}help"; done; }
|
||||
# docopt parser above, complete command for generating this parser is `docopt.sh abra`
|
||||
|
||||
PROGRAM_NAME=$(basename "$0")
|
||||
@ -1251,7 +1254,7 @@ _abra_backup_mysql() {
|
||||
|
||||
###### .. app deploy
|
||||
help_app_deploy (){
|
||||
echo "abra [options] app <app> deploy [--update] [--force] [--skip-version-check]
|
||||
echo "abra [options] app <app> deploy [--update] [--force] [--skip-version-check] [--no-domain-poll]
|
||||
|
||||
Deploy app <app> to the configured server.
|
||||
|
||||
@ -1259,6 +1262,7 @@ OPTIONS
|
||||
--update Consent to deploying an updated app version
|
||||
--force Force a deployment regardless of state
|
||||
--skip-version-check Don't try and detect deployed version
|
||||
--no-domain-poll Don't wait for the configured domain to come up
|
||||
|
||||
POWERED BY
|
||||
docker stack deploy -c compose.yml <app>"
|
||||
@ -1269,6 +1273,7 @@ sub_app_deploy (){
|
||||
|
||||
NON_INTERACTIVE=$abra___no_prompt
|
||||
SKIP_VERSION_CHECK=$abra___skip_version_check
|
||||
NO_DOMAIN_POLL=$abra___no_domain_poll
|
||||
|
||||
if [ -n "$abra__version_" ]; then
|
||||
VERSION="$abra__version_"
|
||||
@ -1320,7 +1325,9 @@ sub_app_deploy (){
|
||||
if (cd "$APP_DIR" && docker stack deploy -c ${COMPOSE_FILE//:/ -c } "$STACK_NAME"); then
|
||||
ensure_stack_deployed "$STACK_NAME"
|
||||
if [ -n "$DOMAIN" ]; then
|
||||
ensure_domain_deployed "https://${DOMAIN}"
|
||||
if [[ $NO_DOMAIN_POLL == "false" ]]; then
|
||||
ensure_domain_deployed "https://${DOMAIN}"
|
||||
fi
|
||||
success "Yay! App should be available at https://${DOMAIN}"
|
||||
else
|
||||
success "Yay! That worked. No \$DOMAIN defined, check status by running \"abra app ${STACK_NAME} ps\""
|
||||
|
Reference in New Issue
Block a user