To install, place datadog.py
in your callback plugins directory. If you don't yet have one, run:
mkdir -p plugins/callback
Then place the following in your ansible.cfg
file:
[defaults]
callback_plugins = ./plugins/callback
#!/usr/bin/env bash -ue | |
if [[ $# -lt 1 || $# -gt 2 ]]; then | |
echo "Usage: git $(basename "$0" | sed 's/^git-//') <end-commit> [<start-commit>]" | |
exit 1 | |
fi | |
diff_range="$1^..$1" | |
end_commit="$1^" | |
if [[ $# -eq 2 ]]; then |
>>> import gravatar | |
>>> user = gravatar.User(<email>, password=<password>) # substitute the email address and password of a Gravatar account | |
>>> user.test() | |
1315290974 # however many seconds have passed since 1970 |