Beispiel #1
0
def daemon():
    args = parse_args(sys.argv[1:])
    config = get_config("slave.yaml", path=args.config)

    auth_method = get_auth_method(args, config)
    proxy = get_proxy(config, auth_method)

    from debile.slave.daemon import main
    main(args, config, proxy)
Beispiel #2
0
def daemon():
    from argparse import ArgumentParser
    parser = ArgumentParser(description="Debile build slave")
    parser.add_argument("--config", action="store", dest="config", default=None,
                        help="Path to the slave.yaml config file.")
    parser.add_argument("-s", "--syslog", action="store_true", dest="syslog",
                        help="Log to syslog instead of stderr.")
    parser.add_argument("-d", "--debug", action="store_true", dest="debug",
                        help="Enable debug messages to stderr.")

    args = parser.parse_args()
    config = get_config("slave.yaml", path=args.config)
    proxy = get_proxy(config)

    from debile.slave.daemon import main
    main(args, config, proxy)
Beispiel #3
0
def daemon():
    from argparse import ArgumentParser
    parser = ArgumentParser(description="Debile build slave")
    parser.add_argument("--config", action="store", dest="config", default=None,
                        help="Path to the slave.yaml config file.")
    parser.add_argument("-s", "--syslog", action="store_true", dest="syslog",
                        help="Log to syslog instead of stderr.")
    parser.add_argument("-d", "--debug", action="store_true", dest="debug",
                        help="Enable debug messages to stderr.")
    parser.add_argument("--auth", action="store", dest="auth_method",
                        default='ssl',
                        help="Authentication method ('ssl' or 'simple')")

    args = parser.parse_args()
    config = get_config("slave.yaml", path=args.config)
    proxy = get_proxy(config, args.auth_method)

    from debile.slave.daemon import main
    main(args, config, proxy)
Beispiel #4
0
def daemon():
    from debile.slave.daemon import main
    import sys
    return main(*sys.argv[1:])
Beispiel #5
0
def daemon():
    from debile.slave.daemon import main
    import sys
    return main(*sys.argv[1:])