diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-20 15:33:23 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-06-25 20:46:16 +1000 |
commit | e88cf72bed4220cd3d9636ad35311335b7d06a0f (patch) | |
tree | b21200b122f89c4a92399feb31af463e4851f0b7 /autocluster | |
parent | 98bf844fae2d32d3d30f1bdfd7c30dd6bdae3082 (diff) | |
download | autocluster-e88cf72bed4220cd3d9636ad35311335b7d06a0f.tar.gz autocluster-e88cf72bed4220cd3d9636ad35311335b7d06a0f.tar.xz autocluster-e88cf72bed4220cd3d9636ad35311335b7d06a0f.zip |
Rename some of the internal functions to NOUN_VERB
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'autocluster')
-rwxr-xr-x | autocluster | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/autocluster b/autocluster index 6fc78f3..77a79a3 100755 --- a/autocluster +++ b/autocluster @@ -470,7 +470,7 @@ common_nodelist_hacking () create_cluster_hooks= cluster_created_hooks= -create_cluster () +cluster_create () { # Use $1. If not set then use value from configuration file. CLUSTER="${1:-${CLUSTER}}" @@ -561,7 +561,7 @@ guess_install_network () } # create base image -create_base() +base_create() { local NAME="$BASENAME" local DISK="${VIRTBASE}/${NAME}.${BASE_FORMAT}" @@ -659,7 +659,7 @@ EOF ############################### # boot the base disk -boot_base() { +base_boot() { rm -rf tmp mkdir -p tmp @@ -1300,11 +1300,11 @@ case "$t" in case "$t" in base) [ $# != 0 ] && usage - create_base + base_create ;; cluster) [ $# != 1 ] && usage - create_cluster "$1" + cluster_create "$1" ;; node) [ $# != 2 ] && usage @@ -1324,7 +1324,7 @@ case "$t" in diskimage unmount ;; bootbase) - boot_base; + base_boot; ;; *) usage; |