Sha256: 4b5a05eac7efb34a02fcf7b941aaf285167ebe425aabd4d569b83f6f60edcc42

Contents?: true

Size: 886 Bytes

Versions: 7

Compression:

Stored size: 886 Bytes

Contents

#!/bin/sh

if [ "${PUPPERWARE_ANALYTICS_ENABLED}" != "true" ]; then
    # Don't print out any messages here since this is a CLI container
    exit 0
fi

# See: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters
# Tracking ID
tid=UA-132486246-5
# Application Name
an=r10k
# Application Version
av=$R10K_VERSION
# Anonymous Client ID
_file=/var/tmp/pwclientid
cid=$(cat $_file 2>/dev/null || (cat /proc/sys/kernel/random/uuid | tee $_file))
# Event Category
ec=${PUPPERWARE_ANALYTICS_STREAM:-dev}
# Event Action
ea=start
# Anonymize ip
aip=1

_params="v=1&t=event&tid=${tid}&an=${an}&av=${av}&cid=${cid}&ec=${ec}&ea=${ea}&aip=${aip}"
_url="http://www.google-analytics.com/collect?${_params}"

# Don't print out any messages here since this is a CLI container
curl --fail --silent --show-error --output /dev/null \
    -X POST -H "Content-Length: 0" $_url

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
r10k-3.3.3 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.2.3 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.3.2 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.3.1 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.2.1 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.3.0 docker/r10k/docker-entrypoint.d/10-analytics.sh
r10k-3.2.0 docker/r10k/docker-entrypoint.d/10-analytics.sh