def install(machine, backup_=False, basefile=None): cfg = UmlConfig(machine) ui = UmlInstaller(cfg=cfg) u = UmlRunner(cfg) if basefile is None: basefile = cfg['basefile'] ui.install_profile(cfg['profile'], basefile) if backup_: backup(machine) u.set(machine) return u
def install(machine, backup_=False, basefile=None): cfg = UmlConfig(machine) ui = UmlInstaller(cfg=cfg) ui.options["umlmachine"] = machine u = UmlRunner(cfg) if basefile is None: basefile = cfg["basefile"] ui.install_profile(cfg["profile"], basefile) if backup_: backup(machine) u.set(machine) return u
def install_machine(self, backupalso=False, basefile=None, profile=None): self._check_current() machine = self.current cfg = self._make_config(machine) installer = UmlInstaller(cfg=cfg) installer.run_background = self.run_background installer.options['umlmachine'] = machine installer.options['umid'] = machine if basefile is None: basefile = self._get_basefile(cfg, machine) if profile is None: profile = cfg.get(machine, 'profile') installer.install_profile(profile, basefile) if self.run_background: self.run_process = installer.run_process print 'self.run_process', self.run_process if backupalso: self.backup_machine(basefile=basefile)
def install_machine(self, backupalso=False, basefile=None, profile=None): self._check_current() machine = self.current cfg = self._make_config(machine) installer = UmlInstaller(cfg=cfg) installer.run_background = self.run_background installer.options["umlmachine"] = machine installer.options["umid"] = machine if basefile is None: basefile = self._get_basefile(cfg, machine) if profile is None: profile = cfg.get(machine, "profile") installer.install_profile(profile, basefile) if self.run_background: self.run_process = installer.run_process print "self.run_process", self.run_process if backupalso: self.backup_machine(basefile=basefile)