From 34f2999e146aa10ca72dc72a9c4d8c3621c756e9 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 7 Oct 2011 12:59:29 +0200 Subject: [PATCH] Type: implement manifest_path Signed-off-by: Steven Armstrong --- lib/cdist/core/type.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/cdist/core/type.py b/lib/cdist/core/type.py index 7856c92f..36f6c276 100644 --- a/lib/cdist/core/type.py +++ b/lib/cdist/core/type.py @@ -70,11 +70,6 @@ class Type(object): except KeyError as e: raise cdist.MissingEnvironmentVariableError(e.args[0]) - # FIXME: probably wrong place for this - @property - def remote_explorer_dir(self): - return os.path.join(self.remote_path, "explorer") - @classmethod def list_types(cls): """Return a list of type instances""" @@ -112,6 +107,15 @@ class Type(object): self.name ) + # FIXME: probably wrong place for this + @property + def remote_explorer_dir(self): + return os.path.join(self.remote_path, "explorer") + + @property + def manifest_path(self): + return os.path.join(self.path, "manifest") + @property def is_singleton(self): """Check whether a type is a singleton."""