new: core/__cdist_remote_explorer_run

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-06-14 11:10:58 +02:00
parent 022db22924
commit cda6c24799
2 changed files with 2 additions and 4 deletions

View file

@ -23,7 +23,7 @@
. cdist-config . cdist-config
[ $# -eq 1 ] || __cdist_usage "<target_host>" [ $# -eq 1 ] || __cdist_usage "<target_host>"
set -ue set -uex
__cdist_target_host="$1"; shift __cdist_target_host="$1"; shift
@ -33,7 +33,7 @@ __cdist_echo info "Running global explorers "
__cdist_dir push "${__cdist_explorer_dir}" "${__cdist_remote_explorer_dir}" __cdist_dir push "${__cdist_explorer_dir}" "${__cdist_remote_explorer_dir}"
# run the initial explorers remotely # run the initial explorers remotely
__cdist_run_remote cdist-remote-explorer-run \ __cdist_run_remote __cdist_remote_explorer_run \
"$__cdist_name_var_explorer" "$__cdist_remote_explorer_dir" \ "$__cdist_name_var_explorer" "$__cdist_remote_explorer_dir" \
"$__cdist_remote_out_explorer_dir" "$__cdist_remote_out_explorer_dir"

View file

@ -24,11 +24,9 @@
# and __type_explorers can be submitted :-) # and __type_explorers can be submitted :-)
# #
# FIXME: cleanup!
__cdist_remote_explorer_run() __cdist_remote_explorer_run()
{ {
[ $# -eq 3 ] || __cdist_usage "<variable name> <explorer dir> <out dir>" [ $# -eq 3 ] || __cdist_usage "<variable name> <explorer dir> <out dir>"
set -ue
"$__cdist_name_var_object=\"$(__cdist_remote_object_dir "$__cdist_object_self")\"" "$__cdist_name_var_object=\"$(__cdist_remote_object_dir "$__cdist_object_self")\""