From 2ab6bcb0734660fd55ab4044c597e0d4d933f776 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Sep 2014 15:49:39 -0300 Subject: Initialize all modules on hydra module-add --- share/hydra/module-add | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/hydra/module-add b/share/hydra/module-add index 5e0748b..1bc8cb1 100755 --- a/share/hydra/module-add +++ b/share/hydra/module-add @@ -23,6 +23,7 @@ hydra_config_load # Parameters DOMAIN="`facter domain`" +# Add a module function hydra_module_add { # Command line arguments MODULE="$1" @@ -50,8 +51,11 @@ function hydra_module_add { ( cd $PUPPET; git push ) } +# Main loop for module in $*; do echo "Adding module $module at puppet repository..." hydra_module_add $module done +# Initialize everything +( cd $PUPPET ; git submodule update --init --recursive ) -- cgit v1.2.3