original_docstring: Install gerrit into thehookenv.configured location.
  
      :param war: The location of the war file for Gerrit
      :type war: str
      :param location: Where to isntall Gerrit
      :type location: str
      
docstring: Install gerrit into thehookenv.configured location.
docstring_tokens: Install gerrit into thehookenv . configured location .
code: def install(war, location):
      """Install gerrit into thehookenv.configured location.
  
      :param war: The location of the war file for Gerrit
      :type war: str
      :param location: Where to isntall Gerrit
      :type location: str
      """
      res = subprocess.check_call([
          "sudo", "-u", "gerrit",
          "java", "-jar", war,
          "init", "-d", location,
          "--batch",
          "--install-all-plugins",
          "--no-auto-start"])
      logging.debug(res)
code_tokens: def install ( war , location ) : res = subprocess . check_call ( [ "sudo" , "-u" , "gerrit" , "java" , "-jar" , war , "init" , "-d" , location , "--batch" , "--install-all-plugins" , "--no-auto-start" ] ) logging . debug ( res )
short_docstring: Install gerrit into thehookenv.configured location.
short_docstring_tokens: Install gerrit into thehookenv . configured location .
comment: """Install gerrit into thehookenv.configured location.
  
      :param war: The location of the war file for Gerrit
      :type war: str
      :param location: Where to isntall Gerrit
      :type location: str
      """