diff libervia/server/tasks/task.py @ 1509:106bae41f5c8

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:11 +0200
parents 822bd0139769
children
line wrap: on
line diff
--- a/libervia/server/tasks/task.py	Fri Apr 07 15:20:40 2023 +0200
+++ b/libervia/server/tasks/task.py	Sat Apr 08 13:44:11 2023 +0200
@@ -31,7 +31,7 @@
     ON_ERROR: str = "stop"
     LOG_OUTPUT: bool = True
     # list of directories to check for restarting this task
-    # Task.onDirEvent will be called if it exists, otherwise
+    # Task.on_dir_event will be called if it exists, otherwise
     # the task will be run and Task.start will be called
     WATCH_DIRS: Optional[list] = None
     # list of task names which must be prepared/started before this one
@@ -58,15 +58,15 @@
         """path where generated files will be build for this site"""
         return self.manager.build_path
 
-    def getConfig(self, key, default=None, value_type=None):
-        return self.host.getConfig(self.resource, key=key, default=default,
+    def config_get(self, key, default=None, value_type=None):
+        return self.host.config_get(self.resource, key=key, default=default,
                                    value_type=value_type)
 
     @property
     def site_name(self):
         return self.resource.site_name
 
-    def findCommand(self, name, *args):
+    def find_command(self, name, *args):
         """Find full path of a shell command
 
         @param name(unicode): name of the command to find