Sha256: df0499750f870ad3c6b05fd5ec41f43020cf32cf4996250fd786eea73c571b20
Contents?: true
Size: 1001 Bytes
Versions: 30
Compression:
Stored size: 1001 Bytes
Contents
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import recipe_api class InfraPathsApi(recipe_api.RecipeApi): """infra_paths module is glue for design mistakes. It will be removed.""" def initialize(self): path_config = self.m.properties.get('path_config') if path_config: # TODO(phajdan.jr): remove dupes from the engine and delete infra_ prefix. self.m.path.set_config('infra_' + path_config) @property def default_git_cache_dir(self): """Returns the location of the default git cache directory. This property should be used instead of using path['git_cache'] directly. It returns git_cache path if it is defined (Buildbot world), otherwise uses the more generic [CACHE]/git path (LUCI world). """ try: return self.m.path['git_cache'] except KeyError: return self.m.path['cache'].join('git')
Version data entries
30 entries across 30 versions & 1 rubygems