Method: Command::Mail#initialize
- Defined in:
- lib/command/mail.rb
#initialize ⇒ Mail
Returns a new instance of Mail.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/command/mail.rb', line 15 def initialize super("[<target1> ...] [options]") @opt.separator <<-EOS ・主にSend to Kindleを使うためのコマンドです。 ・<target>で指定した小説の電子書籍データメールで送信します。 ・<target>を省略した場合、新着があった小説を全て送信します。 ・メールの送信設定は、#{Mailer::SETTING_FILE}ファイルを編集します。 (初めてコマンドを使うときに自動で作成されます) ・<target>にhotentryを指定した場合、最新のhotnetryを送信します Examples: narou mail 6 # 新着関係なくメール(送信済みフラグは立つ) narou update narou mail # updateで新着があった小説を全てメール narou mail --force # 凍結済以外の全ての小説を強制的にメール(使い方に注意) Options: EOS @opt.on("-f", "--force", "全ての小説を強制的に送信") { @options["force"] = true } end |