예제 #1
0
def restore(machine, basefile=None):
    raise Error, 'need to fix me'
    cfg = PaellaConfig()
    umcfg = get_machines_config(machine)
    conn = InstallerConnection(cfg)
    ui = UmlInstaller(conn, umcfg)
    if basefile is None:
        basefile = join(umcfg['base_path'], umcfg['basefile'])
    ui.restore_profile(machine, basefile)
예제 #2
0
def restore(machine, basefile=None):
    raise Error, 'need to fix me'
    cfg = PaellaConfig()
    umcfg = get_machines_config(machine)
    conn = InstallerConnection(cfg)
    ui = UmlInstaller(conn, umcfg)
    if basefile is None:
        basefile = join(umcfg['base_path'], umcfg['basefile'])
    ui.restore_profile(machine, basefile)
예제 #3
0
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
예제 #4
0
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
예제 #5
0
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
예제 #6
0
 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)
예제 #7
0
 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)