shrink cdist-remote-code-run-all

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-18 01:34:34 +01:00
parent 42af407d3e
commit 7336499995
3 changed files with 2 additions and 12 deletions

View File

@ -52,11 +52,9 @@ cdist-manifest-run-all "$__cdist_target_host"
cdist-object-explorer-all "$__cdist_target_host"
cdist-object-gencode-all "$__cdist_target_host"
# Transfer all objects including code
cdist-dir push "$__cdist_target_host" "$__cdist_out_object_dir" \
"${__cdist_remote_out_object_base_dir}"
# And finally - execute the code
cdist-code-run-all "$__cdist_target_host"
echo "cdist $__cdist_version: Successfully finished run on $__cdist_target_host"

View File

@ -30,7 +30,7 @@ __cdist_out_object_dir="$1"; shift
object="$1"; shift
finished="$(__cdist_object_code_finished "$__cdist_object")"
finished="$(__cdist_object_code_finished "$object")"
code="$(__cdist_object_code "$object")"
require="$(__cdist_object_require "$object")"

View File

@ -31,13 +31,5 @@ __cdist_out_object_dir="$1"; shift
__cdist_object_list "$__cdist_out_object_dir" > "$__cdist_tmp_file"
while read object; do
code="$(__cdist_object_code "$object")"
require="$(__cdist_object_require "$object")"
# Object code depends on others, execute them before us
if [ -f "$require" ]; then
while read requirement; do
cdist-remote-code-run "$code"
done < "$require"
fi
cdist-remote-code-run "$__cdist_out_object_dir" "$object"
done < "$__cdist_tmp_file"