Skip to content

slack_addon

SlackIntegrationAddon

Bases: AYONAddon, IPluginPaths

Allows sending notification to Slack channels during publishing.

Source code in client/ayon_slack/slack_addon.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class SlackIntegrationAddon(AYONAddon, IPluginPaths):
    """Allows sending notification to Slack channels during publishing."""

    name = "slack"
    version = __version__

    def get_plugin_paths(self):
        """Implementation of abstract method for `IPluginPaths`."""

        return {
            "publish": self.get_publish_plugin_paths(),
        }

    def get_publish_plugin_paths(self, host_name=None):
        return [
            os.path.join(SLACK_ADDON_DIR, "plugins", "publish")
        ]

get_plugin_paths()

Implementation of abstract method for IPluginPaths.

Source code in client/ayon_slack/slack_addon.py
18
19
20
21
22
23
def get_plugin_paths(self):
    """Implementation of abstract method for `IPluginPaths`."""

    return {
        "publish": self.get_publish_plugin_paths(),
    }