Exemplo n.º 1
0
 def update_repos(self, *args, **kwargs):
     plugins = PluginsHandler()
     if plugins.update_plugin_repos():
         # Return success
         self.write(json.dumps({"success": True}))
     else:
         # Return failure
         self.write(json.dumps({"success": False}))
Exemplo n.º 2
0
def reload_plugin_repos_data():
    """
    Reloads all plugin repos data from the configured URL path

    :return:
    """
    plugins = PluginsHandler()
    return plugins.update_plugin_repos()
Exemplo n.º 3
0
 def plugin_repo_update(self):
     self._log("Checking for updates to plugin repos")
     plugin_handler = PluginsHandler()
     plugin_handler.update_plugin_repos()