from pluginbase import PluginBase


class PluginManager:
    def __init__(self, paths, provider):
        self.paths = [paths]
        self.provider = provider

        plugin_base = PluginBase(package='foremast.plugins')
        self.plugin_source = plugin_base.make_plugin_source(searchpath=self.paths)

    def plugins(self):
        for plugin in self.plugin_source.list_plugins():
            yield plugin

    def load(self):
        return self.plugin_source.load_plugin(self.provider)

"""Manager to handle plugins"""
from pluginbase import PluginBase


class PluginManager:
    """Class to manage and create Spinnaker applications

    Args:
        paths (str): Path of plugin directory.
        provider (str): The name of the cloud provider.
    """

    def __init__(self, paths, provider):
        self.paths = [paths]
        self.provider = provider

        plugin_base = PluginBase(package='foremast.plugins')
        self.plugin_source = plugin_base.make_plugin_source(searchpath=self.paths)

    def plugins(self):
        """List of all plugins available."""
        for plugin in self.plugin_source.list_plugins():
            yield plugin

    def load(self):
        """Load the plugin object."""
        return self.plugin_source.load_plugin(self.provider)

Add docstring to plugin manager
chore: Add docstring to plugin manager
