fuel-library/deployment/remove_modules.sh
Dmitry Ilyin 9ed14ce1b3 Noop tests refactoring
Change-Id: I814667283ccfc6ebd7c16d961270f688e9fb9c4c
2015-11-03 17:09:22 +03:00

14 lines
308 B
Bash
Executable File

#!/bin/sh
# remove all external puppet modules
dir=`dirname $0`
cd "${dir}" || exit 1
cat Puppetfile | grep "^mod '" | awk -F "'" '{ print $2 }' | while read module; do
if [ -d "puppet/${module}" ]; then
echo "Remove: puppet/${module}"
rm -rf "puppet/${module}"
fi
done
rm -f 'Puppetfile.lock'