Beispiel #1
0
def runAutoInstall(baseDir, scriptName, opts, args, type):
    if len(args) == 0:
        print 'Port of the Extension Auto-Installer needs to be specified'
        usage(scriptName, type, 'autoinstall')
        return

    multicompartment = False
    for option, value in opts:
        if option in ('-m', '--multi-compartment'):
            multicompartment = True

    if ':' in args[0]:
        host, port = args[0].rsplit(':', 1)
    else:
        host, port = ('localhost', args[0])

    import buildtools.packagerGecko as packager
    packager.autoInstall(baseDir, type, host, port, multicompartment=multicompartment)
def runAutoInstall(baseDir, scriptName, opts, args, type):
  if len(args) == 0:
    print 'Port of the Extension Auto-Installer needs to be specified'
    usage(scriptName, type, 'autoinstall')
    return

  multicompartment = False
  for option, value in opts:
    if option in ('-m', '--multi-compartment'):
      multicompartment = True

  if ':' in args[0]:
    host, port = args[0].rsplit(':', 1)
  else:
    host, port = ('localhost', args[0])

  import buildtools.packagerGecko as packager
  packager.autoInstall(baseDir, type, host, port, multicompartment=multicompartment)