Deleted
Added
1from unit.applications.proto import TestApplicationProto 2 3 4class TestApplicationRuby(TestApplicationProto): 5 application_type = "ruby" 6 |
7 def load(self, script, name='config.ru', **kwargs): |
8 script_path = self.current_dir + '/ruby/' + script 9 10 self._load_conf( 11 { 12 "listeners": {"*:7080": {"pass": "applications/" + script}}, 13 "applications": { 14 script: { 15 "type": self.application_type, 16 "processes": {"spare": 0}, 17 "working_directory": script_path, 18 "script": script_path + '/' + name, 19 } 20 }, |
21 }, 22 **kwargs |
23 ) |