Beispiel #1
0
def server():
    parser = ArgumentParser(description="Debile master daemon")
    parser.add_argument("--config",
                        action="store",
                        dest="config",
                        default=None,
                        help="Path to the master.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="Auth method: 'ssl' or 'simple' (ip-based)")

    args = parser.parse_args()
    config = init_master(args.config)

    from debile.master.server import main
    main(args, config)
Beispiel #2
0
def process_incoming():
    parser = ArgumentParser(description="Debile master incoming handling")
    parser.add_argument("--config",
                        action="store",
                        dest="config",
                        default=None,
                        help="Path to the master.yaml config file.")
    parser.add_argument(
        "--group",
        action="store",
        dest="group",
        default="default",
        help="Group to use for uploads without a X-Debile-Group field")
    parser.add_argument("--no-dud",
                        action="store_false",
                        dest="dud",
                        help="Do not process *.dud files.")
    parser.add_argument("--no-changes",
                        action="store_false",
                        dest="changes",
                        help="Do not process *.changes files.")
    parser.add_argument("directory",
                        action="store",
                        help="Directry to process.")

    args = parser.parse_args()
    config = init_master(args.config)

    from debile.master.incoming import main
    main(args, config)
Beispiel #3
0
def server():
    parser = ArgumentParser(description="Debile master daemon")
    parser.add_argument("--config", action="store", dest="config", default=None,
                        help="Path to the master.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 = init_master(args.config)

    from debile.master.server import main
    main(args, config)
Beispiel #4
0
def init():
    parser = ArgumentParser(description="Debile master database initialization")
    parser.add_argument("--config", action="store", dest="config", default=None,
                        help="Path to the master.yaml config file.")
    parser.add_argument("--force", action="store_true", dest="force", default=False,
                        help="Force initialization even if sanity checks fail.")
    parser.add_argument("file", action="store",
                        help="Yaml file with initial database.")

    args = parser.parse_args()
    config = init_master(args.config)

    from debile.master.dimport import main
    main(args, config)
Beispiel #5
0
def process_incoming():
    parser = ArgumentParser(description="Debile master incoming handling")
    parser.add_argument("--config", action="store", dest="config", default=None,
                        help="Path to the master.yaml config file.")
    parser.add_argument("--group", action="store", dest="group", default="default",
                        help="Group to use for uploads without a X-Debile-Group field")
    parser.add_argument("--no-dud", action="store_false", dest="dud",
                        help="Do not process *.dud files.")
    parser.add_argument("--no-changes", action="store_false", dest="changes",
                        help="Do not process *.changes files.")
    parser.add_argument("directory", action="store",
                        help="Directry to process.")

    args = parser.parse_args()
    config = init_master(args.config)

    from debile.master.incoming import main
    main(args, config)
Beispiel #6
0
def init():
    parser = ArgumentParser(
        description="Debile master database initialization")
    parser.add_argument("--config",
                        action="store",
                        dest="config",
                        default=None,
                        help="Path to the master.yaml config file.")
    parser.add_argument(
        "--force",
        action="store_true",
        dest="force",
        default=False,
        help="Force initialization even if sanity checks fail.")
    parser.add_argument("file",
                        action="store",
                        help="Yaml file with initial database.")

    args = parser.parse_args()
    config = init_master(args.config)

    from debile.master.dimport import main
    main(args, config)