prepare cdist-type-emulator transformation
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
8b37daf5ff
commit
a09a618c78
1 changed files with 28 additions and 0 deletions
28
bin/cdist
28
bin/cdist
|
@ -65,6 +65,34 @@ def banner():
|
|||
print(BANNER)
|
||||
|
||||
|
||||
class TypeEmulator:
|
||||
|
||||
def type_emulator():
|
||||
type = basename(sys.argv[0])
|
||||
|
||||
type_is_singleton(type)
|
||||
|
||||
# Check object id
|
||||
|
||||
# Prevent double slash if id begins with /
|
||||
|
||||
# Record parameter: opt_file="${opt#--}"
|
||||
# [ $# -ge 1 ] || __cdist_usage "Missing value for $opt"
|
||||
# echo "${value}" > "${__cdist_parameter_dir}/${opt_file}"
|
||||
|
||||
# Record requirements
|
||||
# echo $requirement >> "$(__cdist_object_require "$__cdist_object_self")"
|
||||
|
||||
# Ensure required parameters are given
|
||||
# Ensure that only optional or required parameters are given
|
||||
# [ "$is_valid" ] || __cdist_usage "Unknown parameter $parameter"
|
||||
|
||||
# Merge object (creating twice with the same parameter + requirements == allowed)
|
||||
|
||||
# diff -ru "${__cdist_new_object_dir}/${__cdist_name_parameter}
|
||||
# # Add "I was here message"
|
||||
# _cdist_object_source_add "${__cdist_object_dir}"
|
||||
|
||||
class Cdist:
|
||||
"""Cdist main class to hold arbitrary data"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue