../bin/cdist-object-prepare -> __cdist_object_prepare

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-06-14 01:07:56 +02:00
parent cc7da0c264
commit 0e2c221b43
2 changed files with 21 additions and 19 deletions

View file

@ -56,7 +56,7 @@ __cdist_dir push "${__cdist_core_dir}" "${__cdist_remote_core_dir}"
cdist-explorer-run-global "$__cdist_target_host"
cdist-manifest-run-init "$__cdist_target_host"
__cdist_object_all cdist-object-prepare
__cdist_object_all __cdist_object_prepare
__cdist_object_all __cdist_object_run
cdist-cache "$__cdist_target_host"

View file

@ -24,8 +24,9 @@
# - run type manifest
#
. cdist-config
[ $# -eq 2 ] || __cdist_usage "<target host> <object>"
__cdist_object_prepare()
{
[ $# -eq 1 ] || __cdist_usage "<object>"
set -eu
__cdist_target_host="$1"; shift
@ -45,3 +46,4 @@ if [ ! -f "$__cdist_object_prepared" ]; then
# Mark this object as prepared
touch "$__cdist_object_prepared"
fi
}