themachine/workers/github/fetch_repos.py
def fetch_repo(data):
    """
    Fetches a repository from github into a temporary directory and stores the
    path into its 'local_path' parameter.

    :param data:    Dictionary with a repository ID as the 'id' key
    """
    repo = Repository.objects.get(**data)

    # create a temporary directory
    tmp_dir = util.tmp_dir('github')

    # log
    log.info("Fetching repo %s to %s", repo.full_name, tmp_dir)

    # clone the repository to the directory
    git.Repo.clone_from(repo.git_url, tmp_dir)

    # add the repo path to the database
    repo.local_path = tmp_dir
    repo.save()

    # tell workers the repo is available
    publish('github.repo_available', data)

    Fetches a repository from github into a temporary directory and stores the
    path into its 'local_path' parameter.

    :param data:    Dictionary with a repository ID as the 'id' key
    
Fetches a repository from github into a temporary directory and stores the
path into its 'local_path' parameter.
Fetches a repository from github into a temporary directory and stores the path into its ' local_path ' parameter .
def fetch_repo(data):
    repo = Repository.objects.get(**data)
    tmp_dir = util.tmp_dir('github')
    log.info("Fetching repo %s to %s", repo.full_name, tmp_dir)
    git.Repo.clone_from(repo.git_url, tmp_dir)
    repo.local_path = tmp_dir
    repo.save()
    publish('github.repo_available', data)
def fetch_repo ( data ) : repo = Repository . objects . get ( ** data ) tmp_dir = util . tmp_dir ( 'github' ) log . info ( "Fetching repo %s to %s" , repo . full_name , tmp_dir ) git . Repo . clone_from ( repo . git_url , tmp_dir ) repo . local_path = tmp_dir repo . save ( ) publish ( 'github.repo_available' , data )
Fetches a repository from github into a temporary directory and stores the
path into its 'local_path' parameter.
Fetches a repository from github into a temporary directory and stores the path into its ' local_path ' parameter .
"""
    Fetches a repository from github into a temporary directory and stores the
    path into its 'local_path' parameter.

    :param data:    Dictionary with a repository ID as the 'id' key
    """ # create a temporary directory # log # clone the repository to the directory # add the repo path to the database # tell workers the repo is available
data
Dictionary with a repository ID as the 'id' key
Dictionary with a repository ID as the ' id ' key