Sha256: 4d57ae833a70e6aa70341175a1b25dfba5a7e9960531fe8321ccceb7c642b7fb

Contents?: true

Size: 1.22 KB

Versions: 13

Compression:

Stored size: 1.22 KB

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 DepotToolsApi(recipe_api.RecipeApi):
  @property
  def download_from_google_storage_path(self):
    return self.package_repo_resource('download_from_google_storage.py')

  @property
  def upload_to_google_storage_path(self):
    return self.package_repo_resource('upload_to_google_storage.py')

  @property
  def root(self):
    """Returns (Path): The "depot_tools" root directory."""
    return self.package_repo_resource()

  @property
  def cros_path(self):
    return self.package_repo_resource('cros')

  @property
  def gn_py_path(self):
    return self.package_repo_resource('gn.py')

  # TODO(dnj): Remove this once everything uses the "gsutil" recipe module
  # version.
  @property
  def gsutil_py_path(self):
    return self.package_repo_resource('gsutil.py')

  @property
  def ninja_path(self):
    ninja_exe = 'ninja.exe' if self.m.platform.is_win else 'ninja'
    return self.package_repo_resource(ninja_exe)

  @property
  def presubmit_support_py_path(self):
    return self.package_repo_resource('presubmit_support.py')

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
libv8-6.2.414.42.1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.2.414.42.0 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.2.414.42.0beta1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.3 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.2 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.0 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.0beta2 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.54.0beta1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-6.0.286.44.0beta1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-5.9.211.38.1 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-5.9.211.38.0 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py
libv8-5.9.211.38.0beta0 vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py