Rename some of the internal functions to NOUN_VERB
[amitay/autocluster.git] / autocluster
index 6fc78f3e3098edad57ffc889fef1b21aeb644c7f..77a79a3eeee83a2162f7c95771f2282ad34f2a8d 100755 (executable)
@@ -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;