예제 #1
0
def update(branch):
    """
    Pull in the latest code for the latest release.
    
        $ fab update:staging
        
    Only to be used for small fixed, typos etc..
    
    """
    current_release = base.releases(env.releases_path)[-1]
    with cd(_join(env.current, env.github_repo_name)):
        git.pull(branch)
예제 #2
0
파일: fabfile.py 프로젝트: dmaclay/vumi
def update(branch):
    """
    Pull in the latest code for the latest release.
    
        $ fab update:staging
        
    Only to be used for small fixed, typos etc..

    Runs git stash first to undo fabdir effects
    """
    current_release = base.releases(env.releases_path)[-1]
    copy_settings_file(branch, release=current_release)
    with cd(_join(env.current, env.github_repo_name)):
        run("git stash")
        git.pull(branch)