Skip to content

Instantly share code, notes, and snippets.

@serinuntius
Created July 24, 2017 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serinuntius/0bcecf706b07466c60e6d907012c3ac4 to your computer and use it in GitHub Desktop.
Save serinuntius/0bcecf706b07466c60e6d907012c3ac4 to your computer and use it in GitHub Desktop.
asakaiコマンド
#! /usr/bin/env ruby
require 'date'
require 'uri'
today_speaker = ARGV[0]
tommorow_speaker = ARGV[1]
client = 'client@ml.kayac.com'
d = Date.today.strftime('%Y年%m月%d日')
subject = "【CL朝会ログ】#{d} #{today_speaker}さん「〜、」"
body =
"""
おはようございます!せりです!
本日の朝会ログをお送りします!
本日のスピーカーは、#{today_speaker}さんでした。
ありがとうございました。
明日のスピーカーは、#{tommorow_speaker}さんです。
よろしくお願いします。
"""
mail_link = URI.encode("mailto:#{client}?subject=#{subject}&body=#{body}")
`open "#{mail_link}"`
@serinuntius
Copy link
Author

/usr/bin/local/に配置
chmod 755 asakai

@serinuntius
Copy link
Author

asakai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment