示例#1
0
    def setUp(self):
        self.root = tempfile.mkdtemp()

        self.appcfgmgr = appcfgmgr.AppCfgMgr(root=self.root)

        self.cache = self.appcfgmgr.tm_env.cache_dir
        self.apps = self.appcfgmgr.tm_env.apps_dir
        self.running = self.appcfgmgr.tm_env.running_dir
        self.cleanup = self.appcfgmgr.tm_env.cleanup_dir
示例#2
0
    def setUp(self):
        self.root = tempfile.mkdtemp()

        self.cache = os.path.join(self.root, 'cache')
        self.apps = os.path.join(self.root, 'apps')
        self.running = os.path.join(self.root, 'running')
        self.cleanup = os.path.join(self.root, 'cleanup')

        for tmp_dir in [self.cache, self.apps, self.running, self.cleanup]:
            os.mkdir(tmp_dir)

        self.appcfgmgr = appcfgmgr.AppCfgMgr(root=self.root)
        self.appcfgmgr.tm_env.root = self.root
        self.appcfgmgr.tm_env.cache_dir = self.cache
        self.appcfgmgr.tm_env.apps_dir = self.apps
        self.appcfgmgr.tm_env.running_dir = self.running
        self.appcfgmgr.tm_env.cleanup_dir = self.cleanup
示例#3
0
 def run(approot, runtime):
     """Starts appcfgmgr process."""
     mgr = appcfgmgr.AppCfgMgr(approot, runtime)
     mgr.run()
示例#4
0
 def run(approot, runtime, runtime_param=None):
     """Starts appcfgmgr process."""
     mgr = appcfgmgr.AppCfgMgr(approot, runtime, runtime_param)
     mgr.run()