From 4f33e5222dda3bb2477281b613277ac3214172d0 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 7 Oct 2011 13:04:00 +0200 Subject: [PATCH] Type: implement gencode, gencode_remote Signed-off-by: Steven Armstrong --- lib/cdist/core/type.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/cdist/core/type.py b/lib/cdist/core/type.py index 36f6c276..f679bb04 100644 --- a/lib/cdist/core/type.py +++ b/lib/cdist/core/type.py @@ -116,6 +116,14 @@ class Type(object): def manifest_path(self): return os.path.join(self.path, "manifest") + @property + def gencode(self): + return os.path.join(self.path, "gencode-local") + + @property + def gencode_remote(self): + return os.path.join(self.path, "gencode-remote") + @property def is_singleton(self): """Check whether a type is a singleton."""