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

Unified Diff: dart/tools/bots/bot_utils.py

Issue 68633002: Version 1.0.0.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « dart/tools/VERSION ('k') | dart/tools/signing_script.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/bots/bot_utils.py
===================================================================
--- dart/tools/bots/bot_utils.py (revision 30146)
+++ dart/tools/bots/bot_utils.py (working copy)
@@ -164,6 +164,21 @@
return '%s-%s-%s-%s.zip' % (
name, SYSTEM_RENAMES[system], ARCH_RENAMES[arch], mode)
+class GCSNamerApiDocs(object):
+ def __init__(self, channel=Channel.BLEEDING_EDGE):
+ assert channel in Channel.ALL_CHANNELS
+
+ self.channel = channel
+ self.bucket = 'gs://dartlang-api-docs'
+
+ def docs_dirpath(self, revision):
+ assert len('%s' % revision) > 0
+ return '%s/channels/%s/%s' % (self.bucket, self.channel, revision)
+
+ def docs_latestpath(self, revision):
+ assert len('%s' % revision) > 0
+ return '%s/channels/%s/latest.txt' % (self.bucket, self.channel)
+
def run(command, env=None, shell=False):
print "Running command: ", command
« no previous file with comments | « dart/tools/VERSION ('k') | dart/tools/signing_script.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698