update cdist-config with more helper functions

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.0
Nico Schottelius 14 years ago
parent e4fbb1a5d8
commit ce3b83bfc1
  1. 15
      bin/cdist-config

@ -118,6 +118,21 @@ __cdist_type_mydir()
echo "${__cdist_type_dir}/${__cdist_type_current}"
}
__cdist_type_gencode()
{
local type="$1"
echo "${__cdist_type_dir}/${type}/$__cdist_name_gencode"
}
__cdist_object_arg()
{
local arg="$1"; shift
local object="$1"; shift
cat "${__cdist_object_base_dir}/${object}/${arg}"
}
__cdist_tmp_removal()
{
rm -rf "${__cdist_tmp_dir}"

Loading…
Cancel
Save