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