Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Unified Diff: scripts/slave/recipe_modules/gsutil/example.py

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/gsutil/example.py
diff --git a/scripts/slave/recipe_modules/gsutil/example.py b/scripts/slave/recipe_modules/gsutil/example.py
index d80a8bd3de5da4490280480eca40cd6b4cf48205..ffcf331b769f98e2c52737677a236b812d22c697 100644
--- a/scripts/slave/recipe_modules/gsutil/example.py
+++ b/scripts/slave/recipe_modules/gsutil/example.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
DEPS = [
+ 'depot_tools/infra_paths',
'gsutil',
'recipe_engine/path',
]
@@ -10,7 +11,7 @@ DEPS = [
def RunSteps(api):
"""Move things around in a loop!"""
- local_file = api.path['slave_build'].join('boom')
+ local_file = api.infra_paths['slave_build'].join('boom')
bucket = 'chromium-recipe-test'
cloud_file = 'some/random/path/to/boom'
api.gsutil.upload(local_file, bucket, cloud_file,
@@ -45,7 +46,7 @@ def RunSteps(api):
pass
new_cloud_file = 'staging/to/boom'
- new_local_file = api.path['slave_build'].join('erang')
+ new_local_file = api.infra_paths['slave_build'].join('erang')
api.gsutil.download(bucket, new_cloud_file, new_local_file)
private_key_file = 'path/to/key'

Powered by Google App Engine
This is Rietveld 408576698