def tag(version): """ Defines tag to deploy """ if "pydiploy_version" in env: fabric.api.abort(fabric.colors.red( "tag should be set before calling goal (ex: fab tag:master test deploy)")) if check_tag_exist(version): env.tag = version else: fabric.api.abort(fabric.colors.red( "tag/branch provided is not in the repository please fix this first"))
def tag(version): """ Defines tag to deploy """ if "pydiploy_version" in env: fabric.api.abort( fabric.colors.red( "tag should be set before calling goal (ex: fab tag:master test deploy)" )) if check_tag_exist(version): env.tag = version else: fabric.api.abort( fabric.colors.red( "tag/branch provided is not in the repository please fix this first" ))
def test_check_tag_exist(self, collect_branches, collect_tags): check_tag_exist(tag="master") check_tag_exist(tag="test")
def test_check_tag_exist(self, collect_branches, collect_tags): check_tag_exist(tag="master") check_tag_exist(tag="test")