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

Unified Diff: tools/bots/bot_utils.py

Issue 59453012: Implemented archiving of apidocs for all channels (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « editor/build/promote.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py
index f94acd4d1ac9e1dc3af774bd0704864c8a0be517..6ad1c2cba2bc4d77094100ffb8af8d8f729bc9f9 100644
--- a/tools/bots/bot_utils.py
+++ b/tools/bots/bot_utils.py
@@ -165,6 +165,21 @@ class GCSNamer(object):
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 | « editor/build/promote.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698