فهرست منبع

Adds `bin/apply_module_everywhere` Script

Also adds quick todo note to `bin/update_module_from_skeleton`
Fred Damstra 5 سال پیش
والد
کامیت
8f198620a1
2فایلهای تغییر یافته به همراه16 افزوده شده و 0 حذف شده
  1. 14 0
      bin/apply_module_everywhere
  2. 2 0
      bin/update_module_from_skeleton

+ 14 - 0
bin/apply_module_everywhere

@@ -0,0 +1,14 @@
+#! /bin/bash
+# 
+# Runs an init and apply in all copies of a module
+#
+# TODO: Would be really nice if this did some input validation, and if you
+# could specify 'local' or not.
+
+
+for i in $( find . -type d -name "$1" -print | egrep -v "000-skeleton" ); do
+  echo Processing $i...
+  pushd $i
+  terragrunt-local init && terragrunt-local apply
+  popd
+done

+ 2 - 0
bin/update_module_from_skeleton

@@ -1,5 +1,7 @@
 #! /bin/bash
 # Updates all copies of the module to the skeleton's version
+#
+# TODO: Would be nice if this did some input validation.
 
 for i in $( find . -type d -name "$1" -print | egrep -v "000-skeleton" ); do
   echo Processing $i...