Chromium Code Reviews| Index: tools/bots/bot_utils.py |
| diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py |
| index 565ee5ae3043a4cf40586881b3af4ba5de9cd71a..53a316ab2e91b42106e82115f8d096e1555a3943 100644 |
| --- a/tools/bots/bot_utils.py |
| +++ b/tools/bots/bot_utils.py |
| @@ -169,6 +169,9 @@ class GCSNamer(object): |
| def apidocs_zipfilename(self): |
| return 'dart-api-docs.zip' |
| + def dartdocs_zipfilename(self): |
| + return 'dartdocs-gen-api.zip' |
| + |
| def editor_zipfilename(self, system, arch): |
| return 'darteditor-%s-%s.zip' % ( |
| SYSTEM_RENAMES[system], ARCH_RENAMES[arch]) |
| @@ -203,6 +206,10 @@ class GCSNamerApiDocs(object): |
| assert len('%s' % revision) > 0 |
| return '%s/channels/%s/%s' % (self.bucket, self.channel, revision) |
| + def dartdocs_dirpath(self, revision): |
| + assert len('%s' % revision) > 0 |
| + return '%s/channels/%s/gen-dartdocs/%s' % (self.bucket, self.channel, revision) |
|
ricow1
2015/06/15 07:09:30
long line
keertip
2015/06/15 16:14:32
Done.
|
| + |
| def docs_latestpath(self, revision): |
| assert len('%s' % revision) > 0 |
| return '%s/channels/%s/latest.txt' % (self.bucket, self.channel) |
| @@ -278,10 +285,14 @@ class GSUtil(object): |
| shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and |
| sys.platform == 'win32')) |
| - def upload(self, local_path, remote_path, recursive=False, public=False): |
| + def upload(self, local_path, remote_path, recursive=False, |
| + public=False, multithread=False): |
|
ricow1
2015/06/15 07:09:30
we normally indent this after (
keertip
2015/06/15 16:14:32
Done.
|
| assert remote_path.startswith('gs://') |
| - args = ['cp'] |
| + if multithread: |
| + args = ['-m', 'cp'] |
| + else: |
| + args = ['cp'] |
| if public: |
| args += ['-a', 'public-read'] |
| if recursive: |