Created
July 24, 2017 08:18
-
-
Save serinuntius/0bcecf706b07466c60e6d907012c3ac4 to your computer and use it in GitHub Desktop.
asakaiコマンド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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}"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/bin/local/に配置
chmod 755 asakai