add __cdist_object_source_add

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-23 11:30:22 +01:00
parent ab02adf01a
commit 69453feaa5

View file

@ -227,9 +227,19 @@ __cdist_object_require()
echo "$(__cdist_object_dir "$1")/${__cdist_name_require}" echo "$(__cdist_object_dir "$1")/${__cdist_name_require}"
} }
__cdist_object_source_name()
{
echo "$1/${__cdist_name_object_source}"
}
__cdist_object_source() __cdist_object_source()
{ {
cat "$1/${__cdist_name_object_source}" cat "$(__cdist_object_source_name "$1")"
}
__cdist_object_source_add()
{
echo "$__cdist_manifest" >> "$(__cdist_object_source_name "$1")"
} }
__cdist_object_type_explorer_dir() __cdist_object_type_explorer_dir()