dynamic load new explorers

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-09-19 14:28:12 +02:00
commit f65c78deb6
5 changed files with 39 additions and 7 deletions

View file

@ -26,5 +26,6 @@
: ${CDIST_LIBDIR:=$CDIST_CONFIG/lib}
#echo $CDIST_CONFIG
#echo $CDIST_LIBDIR

View file

@ -19,13 +19,16 @@
#
#
reports="hostname os"
#reports="hostname os"
. cdist-config
for report in $reports; do
func="cdist_explore_$report"
var="__cdist_$report"
cd ${CDIST_LIBDIR}
for func in cdist_explore_*; do
#func="cdist_explore_$report"
var="__$func"
. "${CDIST_LIBDIR}/${func}"
eval $var=\"\$\($func\)\"
eval echo $var=\\\"\$$var\\\"