#!/bin/bash
# server - Server support library
set -e
lib_load 'sys/tool/apt'
server_usage() { apt_class_usage 'server'; }
server_deps() { apt_class_deps 'server'; }
server_install() { apt_class_install 'server'; }
server_config() { has_args 1 "$@"; }
server_name() {
[ "$1" ] || error "unable to resolve empty server name"
host "$1" |tail -n1 |cut -f1 -d\.
}
server_addr() {
[ "$1" ] || error "unable to resolve empty server name"
host "$1" |tail -n1 |cut -f4 -d' '
}
Generated on Fri Jul 28 14:36:03 PDT 2017 by mcsh d14 v0.23.0.