From 3ef97980987bd113ad618bc31dcd14212bfa74a9 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 7 Oct 2011 13:06:56 +0200 Subject: [PATCH] implement code, code_remote Signed-off-by: Steven Armstrong --- lib/cdist/core/object.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py index 85822a24..65abc012 100644 --- a/lib/cdist/core/object.py +++ b/lib/cdist/core/object.py @@ -108,6 +108,13 @@ class Object(object): DOT_CDIST ) + @property + def code(self): + return os.path.join(self.path, "code-local") + + @property + def code_remote(self): + return os.path.join(self.path, "code-remote") ### requirements @property