예제 #1
0
파일: api.py 프로젝트: openstack/gce-api
def main():
    config.parse_args(sys.argv)
    logging.setup(CONF, 'gceapi')

    server = service.WSGIService('gceapi', max_url_len=16384)
    service.serve(server)
    service.wait()
예제 #2
0
파일: api.py 프로젝트: gerardobort/gce-api
def main():
    config.parse_args(sys.argv)
    logging.setup(CONF, 'gceapi')

    server = service.WSGIService('gceapi', max_url_len=16384)
    service.serve(server)
    service.wait()
예제 #3
0
파일: manage.py 프로젝트: openstack/gce-api
def main():
    """Parse options and call the appropriate class/method."""
    CONF.register_cli_opt(command_opt)
    config.parse_args(sys.argv)
    log.setup(CONF, "gceapi")

    try:
        CONF.command.func()
    except Exception as e:
        sys.exit("ERROR: %s" % e)
예제 #4
0
def main():
    """Parse options and call the appropriate class/method."""
    CONF.register_cli_opt(command_opt)
    config.parse_args(sys.argv)
    log.setup(CONF, "gceapi")

    try:
        CONF.command.func()
    except Exception as e:
        sys.exit("ERROR: %s" % e)