예제 #1
0
파일: dist.py 프로젝트: pkimber/fabric
def check_scm_status():
    print(yellow("check version control status..."))
    scm = Scm(os.getcwd())
    status = scm.get_status()
    for name in status:
        if name not in ('setup.py',):
            abort('The following files have not been committed: {0}'.format(status))
예제 #2
0
파일: dist.py 프로젝트: pkimber/fabric
def commit_and_tag(version):
    print(yellow("version control - commit and tag..."))
    scm = Scm(os.getcwd())
    scm.commit_and_tag(version)
예제 #3
0
파일: dist.py 프로젝트: pkimber/fabric
def get_scm_config():
    print(yellow("get version control config..."))
    scm = Scm(os.getcwd())
    return scm.get_config()