mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
18 lines
506 B
Bash
Executable file
18 lines
506 B
Bash
Executable file
#!/usr/bin/env bash
|
|
cat ignore.extra
|
|
cd ../../
|
|
|
|
generate() {
|
|
while read -r line; do
|
|
find plugins \
|
|
\( "$@" \) \
|
|
-name "*.py" \
|
|
! -name "__init__.py" \
|
|
-printf "%p ${line//[%\\]/&&}\n" \
|
|
| sort
|
|
done
|
|
}
|
|
|
|
generate -path "plugins/modules/*" <"tests/sanity/ignore-modules.template"
|
|
generate -path "plugins/lookup/*" <"tests/sanity/ignore-lookup.template"
|
|
generate -path "plugins/module_utils/*" <"tests/sanity/ignore-module_utils.template"
|