diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-09-27 15:49:39 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-09-27 15:49:39 -0300 |
commit | 2ab6bcb0734660fd55ab4044c597e0d4d933f776 (patch) | |
tree | c6b5a7dac746a634e8f61a247d241fbb4599fafe /share | |
parent | 787750ef95ce11251c6e708b0d7de7e12ada28b6 (diff) | |
download | hydra-2ab6bcb0734660fd55ab4044c597e0d4d933f776.tar.gz hydra-2ab6bcb0734660fd55ab4044c597e0d4d933f776.tar.bz2 |
Initialize all modules on hydra module-add
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/module-add | 4 |
1 files changed, 4 insertions, 0 deletions
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 ) |