|
a/pyforge/push_re.py |
|
b/pyforge/push_re.py |
|
... |
|
... |
57 |
postlaunch.append('* service reactor start')
|
57 |
postlaunch.append('* service reactor start')
|
58 |
if needs_flyway[:1].lower() in ('', 'y', '1'):
|
58 |
if needs_flyway[:1].lower() in ('', 'y', '1'):
|
59 |
prelaunch.append('* dump the database in case we need to roll back')
|
59 |
prelaunch.append('* dump the database in case we need to roll back')
|
60 |
postlaunch.append('* paster flyway --url mongo://sfn-mongo-1:27017/')
|
60 |
postlaunch.append('* paster flyway --url mongo://sfn-mongo-1:27017/')
|
61 |
if postlaunch:
|
61 |
if postlaunch:
|
62 |
postlaunch = [ 'From sfu-scmprocess-1 so the following:\n' ] + postlaunch
|
62 |
postlaunch = [ 'From sfu-scmprocess-1 do the following:\n' ] + postlaunch
|
63 |
postlaunch = '\n'.join(postlaunch)
|
63 |
postlaunch = '\n'.join(postlaunch)
|
64 |
else:
|
64 |
else:
|
65 |
postlaunch = '-none-'
|
65 |
postlaunch = '-none-'
|
66 |
if prelaunch:
|
66 |
if prelaunch:
|
67 |
prelaunch = [ 'From sfu-scmprocess-1 so the following:\n' ] + prelaunch
|
67 |
prelaunch = [ 'From sfn-mongo-1 do the following:\n' ] + prelaunch
|
68 |
prelaunch = '\n'.join(prelaunch)
|
68 |
prelaunch = '\n'.join(prelaunch)
|
69 |
else:
|
69 |
else:
|
70 |
prelaunch = '-none-'
|
70 |
prelaunch = '-none-'
|
71 |
return TICKET_TEMPLATE.substitute(locals()), tag
|
71 |
return TICKET_TEMPLATE.substitute(locals()), tag
|
72 |
|
72 |
|