Move service checks into commands file

This commit is contained in:
Jose Diaz-Gonzalez
2015-08-29 02:58:48 -04:00
parent 35c9ad5318
commit a7543b5a31
2 changed files with 2 additions and 3 deletions

View File

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

View File

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