def is_setup(self): if fileoperations.is_git_directory_present(): if not fileoperations.program_is_installed('git'): raise CommandError(strings['sc.gitnotinstalled']) else: return True return False
def is_setup(self): if fileoperations.is_git_directory_present(): # We know that the directory has git, but # is git on the path? if not fileoperations.program_is_installed('git'): raise CommandError(strings['sc.gitnotinstalled']) else: return True return False
def is_setup(self): if fileoperations.is_git_directory_present(): # We know that the directory has git, but # is git on the path? if not fileoperations.program_is_installed('git'): raise CommandError(strings['sc.gitnotinstalled']) else: return True return False
def should_prompt_customer_to_opt_into_codecommit(force_non_interactive, region_name, source): source_location, repository, branch = utils.parse_source(source) if force_non_interactive: return False elif source_location and not codecommit.region_supported(region_name): io.log_warning(strings['codecommit.badregion']) return False elif not fileoperations.is_git_directory_present(): io.echo(strings['codecommit.nosc']) return False elif not fileoperations.program_is_installed('git'): io.echo(strings['codecommit.nosc']) return False elif directory_is_already_associated_with_a_branch(): return False return True