diff options
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 ) |