Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
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()
Beispiel #4
0
def _update(echomesh_instance):
  LOGGER.info('Pulling latest codebase from github')
  Git.run_git_commands(GIT_UPDATE)
  _boot(echomesh_instance)
Beispiel #5
0
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()