base-repo-get-service

Loads a service configuration from the repository and outputs it to STDOUT.

Usage

base-repo-get-service SERVICE

Returns

Returns the service definition. This is usually evaluated in a shell script by the eval command.

Example

#
# get service config
config=$(base-repo-get-service ${service})
if [ $? != 0 ]; then
	echo "ERROR loading service config for service '${service}'" >&2
	exit 1
fi
_debug "*** config:
${config}
***"
#
eval ${config}
#