Sha256: 95a9e96f4f9e1f7e100e942deae52ed2c4e502bceb71eb1ea4632cb3c34fa0b8

Contents?: true

Size: 448 Bytes

Versions: 36

Compression:

Stored size: 448 Bytes

Contents

#!/usr/bin/env sh
jira_user="$1"
jira_pass="$2"
email_to="$3"
email_summary=/tmp/opsask-$(date +%s).txt
ruby generate-email-summary.rb $jira_user $jira_pass > $email_summary
if [ -s $email_summary ] ; then
  echo 'Sending out daily summary'
  cat $email_summary | mail -a 'From: noreply@opsask.bluejeansnet.com' -a 'Content-Type: text/html' -s "OpsAsk Summary for $(date '+%B %-d')" $email_to
else
  echo 'Nothing to send'
fi
rm -rf $email_summary

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
opsask-2.3.6 bin/opsask-send-email-summary.sh
opsask-2.3.5 tasks/send-email-summary.sh
opsask-2.3.4 tasks/send-email-summary.sh
opsask-2.3.3 tasks/send-email-summary.sh
opsask-2.3.2 tasks/send-email-summary.sh
opsask-2.3.1 tasks/send-email-summary.sh
opsask-2.3.0 tasks/send-email-summary.sh
opsask-2.2.3 tasks/send-email-summary.sh
opsask-2.2.2 tasks/send-email-summary.sh
opsask-2.2.1 tasks/send-email-summary.sh
opsask-2.2.0 tasks/send-email-summary.sh
opsask-2.1.9 tasks/send-email-summary.sh
opsask-2.1.8 tasks/send-email-summary.sh
opsask-2.1.7 tasks/send-email-summary.sh
opsask-2.1.6 tasks/send-email-summary.sh
opsask-2.1.5 tasks/send-email-summary.sh
opsask-2.1.4 tasks/send-email-summary.sh
opsask-2.1.3 tasks/send-email-summary.sh
opsask-2.1.2 tasks/send-email-summary.sh
opsask-2.1.1 tasks/send-email-summary.sh