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

Side by Side Diff: scripts/slave/recipe_modules/gsutil/api.py

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Copyright notices Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 from slave import recipe_api 7 from recipe_engine import recipe_api
8 from slave import recipe_util 8 from recipe_engine import recipe_util
9 9
10 class GSUtilApi(recipe_api.RecipeApi): 10 class GSUtilApi(recipe_api.RecipeApi):
11 def __call__(self, cmd, name=None, use_retry_wrapper=True, version='3.25', 11 def __call__(self, cmd, name=None, use_retry_wrapper=True, version='3.25',
12 **kwargs): 12 **kwargs):
13 """A step to run arbitrary gsutil commands. 13 """A step to run arbitrary gsutil commands.
14 14
15 Note that this assumes that gsutil authentication environment variables 15 Note that this assumes that gsutil authentication environment variables
16 (AWS_CREDENTIAL_FILE and BOTO_CONFIG) are already set, though if you want to 16 (AWS_CREDENTIAL_FILE and BOTO_CONFIG) are already set, though if you want to
17 set them to something else you can always do so using the env={} kwarg. 17 set them to something else you can always do so using the env={} kwarg.
18 18
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 'Content-Language', 197 'Content-Language',
198 'Content-MD5', 198 'Content-MD5',
199 'Content-Type', 199 'Content-Type',
200 ): 200 ):
201 return name 201 return name
202 202
203 # Add provider prefix 203 # Add provider prefix
204 if not provider_prefix: 204 if not provider_prefix:
205 provider_prefix = 'x-goog-meta' 205 provider_prefix = 'x-goog-meta'
206 return '%s-%s' % (provider_prefix, name) 206 return '%s-%s' % (provider_prefix, name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698