Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)