[Buildbot-commits] buildbot/buildbot/scripts runner.py,1.52,1.53
Brian Warner
warner at users.sourceforge.net
Wed Aug 1 22:07:48 UTC 2007
Update of /cvsroot/buildbot/buildbot/buildbot/scripts
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28692/buildbot/scripts
Modified Files:
runner.py
Log Message:
[project @ 'buildbot create-master' now creates public_html/ and populates it with some sample files]
Original author: warner at lothar.com
Date: 2007-03-01 08:25:34+00:00
Index: runner.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scripts/runner.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- runner.py 2 Jul 2007 17:44:48 -0000 1.52
+++ runner.py 1 Aug 2007 22:07:46 -0000 1.53
@@ -153,6 +153,25 @@
f.close()
os.chmod(target, 0600)
+ def public_html(self, index_html, buildbot_css):
+ if os.path.exists("public_html"):
+ if not self.quiet:
+ print "public_html/ already exists: not replacing"
+ return
+ if not self.quiet:
+ print "populating public_html/"
+ os.mkdir("public_html")
+ target = os.path.join("public_html", "index.html")
+ f = open(target, "wt")
+ f.write(open(index_html, "rt").read())
+ f.close()
+
+ target = os.path.join("public_html", "buildbot.css")
+ f = open(target, "wt")
+ f.write(open(buildbot_css, "rt").read())
+ f.close()
+
+
class MasterOptions(MakerBase):
optFlags = [
["force", "f",
@@ -194,6 +213,9 @@
contents = masterTAC % config
m.makeTAC(contents)
m.sampleconfig(util.sibpath(__file__, "sample.cfg"))
+ m.public_html(util.sibpath(__file__, "../status/web/index.html"),
+ util.sibpath(__file__, "../status/web/classic.css"),
+ )
m.makefile()
if not m.quiet: print "buildmaster configured in %s" % m.basedir
More information about the Commits
mailing list