@staticmethod
def deploy(repo_config):
    """Executes any supplied post-pull deploy command"""
    from .process import ProcessWrapper
    import logging
    logger = logging.getLogger()
    if 'path' in repo_config:
        path = repo_config['path']
    if not 'deploy_commands' in repo_config or len(repo_config[
        'deploy_commands']) == 0:
        logger.info('No deploy commands configured')
        return []
    logger.info('Executing %s deploy commands' % str(len(repo_config[
        'deploy_commands'])))
    cwd = repo_config['path'] if 'path' in repo_config else None
    res = []
    for cmd in repo_config['deploy_commands']:
        res.append(ProcessWrapper().call([cmd], cwd=cwd, shell=True))
    logger.info('%s commands executed with status; %s' % (str(len(res)),
        str(res)))
    return res
