Mercurial > piecrust2
comparison piecrust/admin/sites.py @ 812:82509bce94ca
internal: PEP8 fixup for admin panel code.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 20 Dec 2016 22:20:18 -0800 |
parents | 5e91bc0e3b4d |
children |
comparison
equal
deleted
inserted
replaced
811:c7393ce2dde7 | 812:82509bce94ca |
---|---|
61 def publish_log_file(self): | 61 def publish_log_file(self): |
62 return os.path.join(self.piecrust_app.cache_dir, 'publish.log') | 62 return os.path.join(self.piecrust_app.cache_dir, 'publish.log') |
63 | 63 |
64 def publish(self, target): | 64 def publish(self, target): |
65 args = [ | 65 args = [ |
66 'chef', | 66 'chef', |
67 '--pid-file', self.publish_pid_file, | 67 '--pid-file', self.publish_pid_file, |
68 'publish', target, | 68 'publish', target, |
69 '--log-publisher', self.publish_log_file] | 69 '--log-publisher', self.publish_log_file] |
70 proc = subprocess.Popen(args, cwd=self.root_dir) | 70 proc = subprocess.Popen(args, cwd=self.root_dir) |
71 | 71 |
72 def _comm(): | 72 def _comm(): |
73 proc.communicate() | 73 proc.communicate() |
74 | 74 |