Move service checks into commands file

This commit is contained in:
Jose Diaz-Gonzalez
2015-08-29 02:58:45 -04:00
parent b160c88412
commit 46e4f6f4c8
2 changed files with 2 additions and 3 deletions

View File

@@ -195,6 +195,8 @@ case "$1" in
;; ;;
$PLUGIN_COMMAND_PREFIX:info) $PLUGIN_COMMAND_PREFIX:info)
[[ -z $2 ]] && dokku_log_fail "Please specify a name for the service"
verify_service_name "$2"
service_info $2 service_info $2
;; ;;

View File

@@ -41,9 +41,6 @@ service_alias() {
} }
service_info() { service_info() {
[[ -z $1 ]] && dokku_log_fail "Please specify a name for the service"
verify_service_name "$1"
local SERVICE="$1"; local SERVICE="$1";
local SERVICE_URL=$(service_url "$SERVICE") local SERVICE_URL=$(service_url "$SERVICE")