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

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

Issue 1274723004: Converted Android Chromedriver buildbot scripts to recipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fixed nits. Created 4 years, 5 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 DEPS = [ 5 DEPS = [
6 'depot_tools/infra_paths', 6 'depot_tools/infra_paths',
7 'gsutil', 7 'gsutil',
8 'recipe_engine/path', 8 'recipe_engine/path',
9 ] 9 ]
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private_key_file = 'path/to/key' 52 private_key_file = 'path/to/key'
53 signed_url = api.gsutil.signurl(private_key_file, bucket, cloud_file, 53 signed_url = api.gsutil.signurl(private_key_file, bucket, cloud_file,
54 name='signed url') 54 name='signed url')
55 api.gsutil.remove_url('gs://%s/%s' % (bucket, new_cloud_file)) 55 api.gsutil.remove_url('gs://%s/%s' % (bucket, new_cloud_file))
56 56
57 api.gsutil.download_with_polling('gs://chromium-recipe-test/foo/bar', 57 api.gsutil.download_with_polling('gs://chromium-recipe-test/foo/bar',
58 'local/path/for/download', 58 'local/path/for/download',
59 15, 59 15,
60 600) 60 600)
61 api.gsutil.download_latest_file('gs://chromium-recipe-test/foo',
62 'gs://chromium-recipe-test/foo/b',
63 'local/path/for/download')
64 api.gsutil.list('gs://chromium-recipe-test/foo')
61 65
62 66
63 def GenTests(api): 67 def GenTests(api):
64 yield api.test('basic') 68 yield api.test('basic')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/gsutil/api.py ('k') | scripts/slave/recipe_modules/gsutil/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698