restructure to _path and do not make context dependent on env

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 15:03:26 +02:00
commit e1f0d60e8b
2 changed files with 46 additions and 38 deletions

View file

@ -54,11 +54,14 @@ class ConfigInstall:
def cleanup(self):
self.path.cleanup()
def __init_env(self):
"""Setup environment"""
def run_initial_manifest(self):
"""Run the initial manifest"""
log.info("Running initial manifest %s", self.path.initial_manifest)
env = { "__manifest" : self.path.manifest_dir }
self.run_manifest(self.path.initial_manifest, extra_env=env)
log.info("Running initial manifest %s", self.context.initial_manifest)
env = { "__manifest" : self.context.manifest_dir }
self.run_manifest(self.context.initial_manifest, extra_env=env)
def run_type_manifest(self, cdist_object):
"""Run manifest for a specific object"""