Ejemplo n.º 1
0
                        current=True)
    LOGGER.info('New transfer: %s', new_transfer)
    session.add(new_transfer)

    return new_transfer


if __name__ == '__main__':
    parser = get_parser(__doc__)
    args = parser.parse_args()

    # Override ``start_transfer`` function.
    transfer.start_transfer = _start_transfer

    sys.exit(
        main(
            am_user=args.user,
            am_api_key=args.api_key,
            ss_user=args.ss_user,
            ss_api_key=args.ss_api_key,
            ts_uuid=args.transfer_source,
            ts_path=args.transfer_path,
            depth=args.depth,
            am_url=args.am_url,
            ss_url=args.ss_url,
            transfer_type=args.transfer_type,
            see_files=args.files,
            hide_on_complete=args.hide,
            log_level=set_log_level(args.log_level, args.quiet, args.verbose),
        ))
Ejemplo n.º 2
0
        depth,
        am_url,
        am_user,
        am_api_key,
        transfer_type,
        see_files,
        config_file,
    )
    return 0 if new_transfer else 1


if __name__ == "__main__":
    parser = get_parser(__doc__)
    args = parser.parse_args()

    log_level = loggingconfig.set_log_level(args.log_level, args.quiet,
                                            args.verbose)

    sys.exit(
        main(
            am_user=args.user,
            am_api_key=args.api_key,
            ss_user=args.ss_user,
            ss_api_key=args.ss_api_key,
            ts_uuid=args.transfer_source,
            ts_path=args.transfer_path,
            depth=args.depth,
            am_url=args.am_url,
            ss_url=args.ss_url,
            transfer_type=args.transfer_type,
            see_files=args.files,
            hide_on_complete=args.hide,
Ejemplo n.º 3
0
        depth,
        am_url,
        am_user,
        am_api_key,
        transfer_type,
        see_files,
        config_file,
    )
    return 0 if new_transfer else 1


if __name__ == "__main__":
    parser = get_parser(__doc__)
    args = parser.parse_args()

    log_level = loggingconfig.set_log_level(args.log_level, args.quiet, args.verbose)

    sys.exit(
        main(
            am_user=args.user,
            am_api_key=args.api_key,
            ss_user=args.ss_user,
            ss_api_key=args.ss_api_key,
            ts_uuid=args.transfer_source,
            ts_path=args.transfer_path,
            depth=args.depth,
            am_url=args.am_url,
            ss_url=args.ss_url,
            transfer_type=args.transfer_type,
            see_files=args.files,
            hide_on_complete=args.hide,