User Tools

Site Tools


z:relax:api:base:base-repo-get-service

base-repo-get-service

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

Usage

base-repo-get-service SERVICE
  • SERVICE: a key of a service definition in the repository.

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}
#
z/relax/api/base/base-repo-get-service.txt · Last modified: 2013-02-04 23:17 (external edit)