From 359e5156e27c7f1b397062b07bbe3dbc438c8e43 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 09:52:37 +0200 Subject: [PATCH] +globalexplorer start Signed-off-by: Nico Schottelius --- lib/cdist/core/globalexplorer.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/cdist/core/globalexplorer.py diff --git a/lib/cdist/core/globalexplorer.py b/lib/cdist/core/globalexplorer.py new file mode 100644 index 00000000..1af466e0 --- /dev/null +++ b/lib/cdist/core/globalexplorer.py @@ -0,0 +1,15 @@ + # FIXME: Explorer or stays + def global_explorer_output_path(self, explorer): + """Returns path of the output for a global explorer""" + return os.path.join(self.global_explorer_out_dir, explorer) + + # FIXME Stays here / Explorer? + def remote_global_explorer_path(self, explorer): + """Returns path to the remote explorer""" + return os.path.join(REMOTE_GLOBAL_EXPLORER_DIR, explorer) + + # FIXME: stays here + def list_global_explorers(self): + """Return list of available explorers""" + return os.listdir(self.global_explorer_dir) +