def on_before_activate(self): values = { "folders": self.folders, "name": self.name, "user": core.run("echo $USER").stdout } content = self._template.format(**values) service.add_upstart(self._service, content)
def on_before_activate(self): # TODO: Use shell from the current user # TODO: Allow changes to the used environment values = { "folders": self.folders, "name": self.name, "user": core.run("echo $USER").stdout, "config": self._config, "env": "production", "shell": "/bin/bash -i" } content = self._template.format(**values) service.add_upstart(self._service, content)