diff --git a/recipes/README.recipes.md b/recipes/README.recipes.md index 5204fde86..a1f73fec9 100644 --- a/recipes/README.recipes.md +++ b/recipes/README.recipes.md @@ -135,15 +135,15 @@ the depot_tools repo. #### **class [DepotToolsApi](/recipes/recipe_modules/depot_tools/api.py#12)([RecipeApi][recipe_engine/wkt/RecipeApi]):** -  **@property**
— **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#30)(self):** +  **@property**
— **def [cros\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):**   **@property**
— **def [download\_from\_google\_storage\_path](/recipes/recipe_modules/depot_tools/api.py#17)(self):** -  **@property**
— **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#34)(self):** +  **@property**
— **def [gn\_py\_path](/recipes/recipe_modules/depot_tools/api.py#38)(self):** -  **@property**
— **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#40)(self):** +  **@property**
— **def [gsutil\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):** -  **@contextlib.contextmanager**
— **def [on\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):** +  **@contextlib.contextmanager**
— **def [on\_path](/recipes/recipe_modules/depot_tools/api.py#52)(self):** Use this context manager to put depot_tools on $PATH. @@ -154,9 +154,11 @@ with api.depot_tools.on_path(): # run some steps ``` -  **@property**
— **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#44)(self):** +  **@property**
— **def [presubmit\_support\_py\_path](/recipes/recipe_modules/depot_tools/api.py#48)(self):** -  **@property**
— **def [root](/recipes/recipe_modules/depot_tools/api.py#25)(self):** +  **@property**
— **def [roll\_downstream\_gcs\_deps\_path](/recipes/recipe_modules/depot_tools/api.py#25)(self):** + +  **@property**
— **def [root](/recipes/recipe_modules/depot_tools/api.py#29)(self):** Returns (Path): The "depot_tools" root directory. diff --git a/recipes/recipe_modules/depot_tools/api.py b/recipes/recipe_modules/depot_tools/api.py index 3c53cf019..ce83035ed 100644 --- a/recipes/recipe_modules/depot_tools/api.py +++ b/recipes/recipe_modules/depot_tools/api.py @@ -22,6 +22,10 @@ class DepotToolsApi(recipe_api.RecipeApi): def upload_to_google_storage_path(self): return self.repo_resource('upload_to_google_storage.py') + @property + def roll_downstream_gcs_deps_path(self): + return self.repo_resource('roll_downstream_gcs_deps.py') + @property def root(self): """Returns (Path): The "depot_tools" root directory.""" diff --git a/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json b/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json index 03636dbe1..2c4017cd8 100644 --- a/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json +++ b/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json @@ -20,6 +20,13 @@ ], "name": "upload_to_google_storage" }, + { + "cmd": [ + "ls", + "RECIPE_REPO[depot_tools]/roll_downstream_gcs_deps.py" + ], + "name": "roll_downstream_gcs_deps_path" + }, { "cmd": [ "ls", diff --git a/recipes/recipe_modules/depot_tools/examples/full.expected/win.json b/recipes/recipe_modules/depot_tools/examples/full.expected/win.json index c4c8963cd..de244a502 100644 --- a/recipes/recipe_modules/depot_tools/examples/full.expected/win.json +++ b/recipes/recipe_modules/depot_tools/examples/full.expected/win.json @@ -20,6 +20,13 @@ ], "name": "upload_to_google_storage" }, + { + "cmd": [ + "ls", + "RECIPE_REPO[depot_tools]\\roll_downstream_gcs_deps.py" + ], + "name": "roll_downstream_gcs_deps_path" + }, { "cmd": [ "ls", diff --git a/recipes/recipe_modules/depot_tools/examples/full.py b/recipes/recipe_modules/depot_tools/examples/full.py index 13e6743e9..da25ed28a 100644 --- a/recipes/recipe_modules/depot_tools/examples/full.py +++ b/recipes/recipe_modules/depot_tools/examples/full.py @@ -24,6 +24,9 @@ def RunSteps(api): 'upload_to_google_storage', ['ls', api.depot_tools.upload_to_google_storage_path]) + api.step('roll_downstream_gcs_deps_path', + ['ls', api.depot_tools.roll_downstream_gcs_deps_path]) + api.step('cros', ['ls', api.depot_tools.cros_path]) api.step(