Add "autocluster cluster build" command shortcut
authorMartin Schwenke <martin@meltin.net>
Thu, 26 Jun 2014 01:05:36 +0000 (11:05 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 2 Jul 2014 04:17:17 +0000 (14:17 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
autocluster

index ccbec87f21a54b30e6b92b39b452f1581a3791b0..f742848dd38cf2bb32bc24a7b3b7836c5ec4e51e 100755 (executable)
@@ -54,7 +54,7 @@ EOF
   commands:
      base [ create | boot ] ...
 
-     cluster [ destroy | create | update_hosts | boot | configure ] ...
+     cluster [ build | destroy | create | update_hosts | boot | configure ] ...
 
      create base
            create a base image
@@ -1393,6 +1393,11 @@ case "$t" in
            case "$t" in
                destroy|create|update_hosts|boot|configure)
                    actions_add "cluster_${t}" ;;
+               build)
+                   for t in destroy create update_hosts boot configure ; do
+                       actions_add "cluster_${t}"
+                   done
+                   ;;
                *) usage ;;
            esac
        done