regolith/commands.py
def ingest(rc):
    """Ingests a foreign resource into a database."""
    if rc.coll is None:
        rc.coll = _determine_ingest_coll(rc)
    if rc.coll == 'citations':
        _ingest_citations(rc)
    else:
        raise ValueError(
            "don't know how to ingest collection {0!r}".format(rc.coll))
Ingests a foreign resource into a database.
Ingests a foreign resource into a database.
Ingests a foreign resource into a database .
def ingest(rc):
    if rc.coll is None:
        rc.coll = _determine_ingest_coll(rc)
    if rc.coll == 'citations':
        _ingest_citations(rc)
    else:
        raise ValueError(
            "don't know how to ingest collection {0!r}".format(rc.coll))
def ingest ( rc ) : if rc . coll is None : rc . coll = _determine_ingest_coll ( rc ) if rc . coll == 'citations' : _ingest_citations ( rc ) else : raise ValueError ( "don't know how to ingest collection {0!r}" . format ( rc . coll ) )
Ingests a foreign resource into a database.
Ingests a foreign resource into a database .
"""Ingests a foreign resource into a database."""
rc