@@ -40,9 +40,9 @@ OPTIONS:
4040 Requires: Upstream module name
4141 Optional: Commit hash to pin to specific version
4242
43- --add-module <module-url> [commit-hash| ]
44- Update a specific Openvox module
45- Requires: Upstream module name
43+ --add-module <module-url> [commit-hash]
44+ Add a specific Openvox module (defaults to latest tag)
45+ Requires: Upstream module git URL
4646 Optional: Commit hash to pin to specific version
4747
4848 --puppetfile Path to Puppetfile
@@ -51,6 +51,13 @@ OPTIONS:
5151 -h, --help Display this help message and exit
5252
5353EXAMPLES:
54+ # Add a specific module with latest tag
55+ ${SCRIPT_NAME} --add-module <git-url>
56+
57+ # Add a specific module with pinned commit or specific tag
58+ ${SCRIPT_NAME} --add-module <git-url> <commit-hash>
59+ ${SCRIPT_NAME} --add-module <git-url> <tag>
60+
5461 # Update a specific module with pinned commit or specific tag
5562 ${SCRIPT_NAME} --update-module <module-name> <commit-hash>
5663 ${SCRIPT_NAME} --update-module <module-name> <tag>
@@ -241,6 +248,8 @@ mod 'obmondo/${MODULE_NAME}',
241248EOF
242249 echo " Added ${MODULE_NAME} at ${LATEST_TAG} to Puppetfile"
243250 fi
251+
252+ git add " $PUPPETFILE "
244253}
245254
246255# Function to add new module in linuxaid
@@ -263,8 +272,8 @@ Source: ${GIT_URL}/commit/${COMMIT_HASH}"
263272Source: ${GIT_URL} /releases/tag/${LATEST_TAG} "
264273 fi
265274
275+ update_puppetfile
266276 sync_module_to_linuxaid " $MODULE_NAME " " $COMMIT_MESSAGE "
267- update_puppetfile " Added"
268277}
269278
270279# Check each repository for updates
@@ -300,8 +309,8 @@ Source: ${GIT_URL}/commit/${COMMIT_HASH}"
300309Source: ${GIT_URL} /releases/tag/${LATEST_TAG} "
301310 fi
302311
312+ update_puppetfile
303313 sync_module_to_linuxaid " $MODULE_NAME " " $COMMIT_MESSAGE "
304- update_puppetfile " Update"
305314}
306315
307316function sync_module_to_linuxaid() {
0 commit comments