def _update(echomesh_instance): LOGGER.info('Pulling latest codebase from github.') directory = os.getcwd() try: os.chdir(Path.ECHOMESH_PATH) Git.run_git_commands(GIT_UPDATE) _initialize(echomesh_instance) if not INITIALIZE_ENABLED: LOGGER.info('Please restart echomesh to see the updated changes.') finally: os.chdir(directory)
def _update(echomesh_instance): LOGGER.info('Pulling latest codebase from github.') directory = os.getcwd() try: os.chdir(Path.echomesh_path()) Git.run_git_commands(GIT_UPDATE) _initialize(echomesh_instance) if not INITIALIZE_ENABLED: LOGGER.info('Please restart echomesh to see the updated changes.') finally: os.chdir(directory)
def most_recent_commit(**kwds): lines, returncode = Git.run_git_command(GIT_LOG, **kwds) if not returncode: return lines[0].split()[1], lines[-1].strip()
def _update(echomesh_instance): LOGGER.info('Pulling latest codebase from github') Git.run_git_commands(GIT_UPDATE) _boot(echomesh_instance)