How to use the foremast.slacknotify.SlackNotification function in foremast

To help you get started, we’ve selected a few foremast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github foremast / foremast / src / foremast / runner.py View on Github external
def slack_notify(self):
        """ Sends out a slack notification """
        utils.banner("Sending slack notification")
        if self.env.startswith("prod"):
            notify = slacknotify.SlackNotification(app=self.app,
                                                   env=self.env,
                                                   prop_path=self.json_path)
            notify.post_message()
        else:
            LOG.info("No slack message sent, not production environment")
github foremast / foremast / src / foremast / runner.py View on Github external
def slack_notify(self):
        """Send out a slack notification."""
        utils.banner("Sending slack notification")

        if self.env.startswith("prod"):
            notify = slacknotify.SlackNotification(app=self.app, env=self.env, prop_path=self.json_path)
            notify.post_message()
        else:
            LOG.info("No slack message sent, not production environment")