citadel.nodes.webhook module¶
-
class
citadel.nodes.webhook.Webhook(yml, path)[source]¶ Synopsis: Runs an HTTP client against the given URLs. Requirements: None Platform: Any Usage
1 2
webhook: - http://my.company.slack/notify/user&message=done
While meant to be further developed into a more robust and fully fledged notification mechanism, it currently provides basic functionality for basic HTTP/S calls. The above example would result in the following:
1 2 3 4 5 6 7 8 9
DOWNLOADER="" if which curl ; then DOWNLOADER="$(which curl) -O -s" elif which wget ; then DOWNLOADER="$(which wget) -q" else echo "Unable to find any downloader software. Aborting..." && exit 1 fi $DOWNLOADER http://my.company.slack/notify/user&message