Plugins Component
Used to sync plugins from a source instance to a destination instance of Swimlane
sync_plugin
This class syncs a single Swimlane plugin based on the provided name and ID.
We first check to see if the provided name of the plugin exists in our destination instances plugin_dict.
If it is, then we download the plugin from the source instance. If we are successful we then add it to the destination instance.
If the provided plugin name does not exist in our destination instance plugin_dict we retrieve the plugin from both the source and destination instances. We compare their versions and if the source has a version greater than the destination, we then add it to the destination instance by upgrading the plugin.
def sync_plugin(self, name: str, id: str)
sync
This method is used to sync all plugins from a source instance to a destination instance
def sync(self)