forked from ungleich-public/cdist
++__cdist_echo + FIXME
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
2162d444b3
commit
caed694dee
2 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,7 @@ if [ "$__cdist_has_explorer" ]; then
|
|||
__cdist_type_explorer_pushed_add "$__cdist_type"
|
||||
fi
|
||||
|
||||
echo "Running explorers for $__cdist_object ..."
|
||||
__cdist_echo info "Running explorers for $__cdist_object ..."
|
||||
# Copy object parameters
|
||||
cdist-dir push "$__cdist_target_host" \
|
||||
"$(__cdist_object_parameter_dir "$__cdist_object")" \
|
||||
|
|
|
@ -32,11 +32,14 @@ __cdist_object="$1"; shift
|
|||
__cdist_code_local="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_local}"
|
||||
__cdist_code_remote="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_remote}"
|
||||
|
||||
echo "Generating local code for $__cdist_object ..."
|
||||
# FIXME: check that no file is created if there is no gencode
|
||||
# probably move output code to cdist-object-gencode
|
||||
|
||||
__cdist_echo info "Generating local code for $__cdist_object ..."
|
||||
cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
|
||||
"${__cdist_name_gencode_local}" > "${__cdist_code_local}"
|
||||
|
||||
echo "Generating remote code for $__cdist_object ..."
|
||||
__cdist_echo info "Generating remote code for $__cdist_object ..."
|
||||
cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
|
||||
"${__cdist_name_gencode_remote}" > "${__cdist_code_remote}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue