File tree 4 files changed +421
-468
lines changed
4 files changed +421
-468
lines changed Original file line number Diff line number Diff line change 2
2
3
3
BUILD_STATE = (
4
4
('triggered' , _ ('Triggered' )),
5
+ ('cloning' , _ ('Cloning' )),
6
+ ('installing' , _ ('Installing' )),
5
7
('building' , _ ('Building' )),
6
8
('finished' , _ ('Finished' )),
7
9
)
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ class Build(models.Model):
291
291
default = 'finished' )
292
292
date = models .DateTimeField (_ ('Date' ), auto_now_add = True )
293
293
success = models .BooleanField (_ ('Success' ))
294
+
294
295
setup = models .TextField (_ ('Setup' ), null = True , blank = True )
295
296
setup_error = models .TextField (_ ('Setup error' ), null = True , blank = True )
296
297
output = models .TextField (_ ('Output' ), default = '' , blank = True )
Original file line number Diff line number Diff line change
1
+ import logging
2
+ from optparse import make_option
3
+
4
+ from django .core .management .base import BaseCommand
5
+ from projects import tasks
6
+ from tastyapi import api
7
+
8
+
9
+ log = logging .getLogger (__name__ )
10
+
11
+
12
+ class Command (BaseCommand ):
13
+ """Custom management command to rebuild documentation for all projects on
14
+ the site. Invoked via ``./manage.py update_repos``.
15
+ """
16
+
17
+ def handle (self , * args , ** options ):
18
+ if len (args ):
19
+ for slug in args :
20
+ project_data = api .project (slug ).get ()
21
+ p = tasks .make_api_project (project_data )
22
+ log .info ("Building %s" % p )
23
+ tasks .update_docs (pk = p .pk , docker = True )
You can’t perform that action at this time.
0 commit comments