Method: Command::Mail#initialize

Defined in:
lib/command/mail.rb

#initializeMail

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 "\n  \u30FB\u4E3B\u306BSend to Kindle\u3092\u4F7F\u3046\u305F\u3081\u306E\u30B3\u30DE\u30F3\u30C9\u3067\u3059\u3002\n  \u30FB<target>\u3067\u6307\u5B9A\u3057\u305F\u5C0F\u8AAC\u306E\u96FB\u5B50\u66F8\u7C4D\u30C7\u30FC\u30BF\u30E1\u30FC\u30EB\u3067\u9001\u4FE1\u3057\u307E\u3059\u3002\n  \u30FB<target>\u3092\u7701\u7565\u3057\u305F\u5834\u5408\u3001\u65B0\u7740\u304C\u3042\u3063\u305F\u5C0F\u8AAC\u3092\u5168\u3066\u9001\u4FE1\u3057\u307E\u3059\u3002\n  \u30FB\u30E1\u30FC\u30EB\u306E\u9001\u4FE1\u8A2D\u5B9A\u306F\u3001\#{Mailer::SETTING_FILE}\u30D5\u30A1\u30A4\u30EB\u3092\u7DE8\u96C6\u3057\u307E\u3059\u3002\n(\u521D\u3081\u3066\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u3046\u3068\u304D\u306B\u81EA\u52D5\u3067\u4F5C\u6210\u3055\u308C\u307E\u3059)\n  \u30FB<target>\u306Bhotentry\u3092\u6307\u5B9A\u3057\u305F\u5834\u5408\u3001\u6700\u65B0\u306Ehotnetry\u3092\u9001\u4FE1\u3057\u307E\u3059\n\n  Examples:\nnarou mail 6         # \u65B0\u7740\u95A2\u4FC2\u306A\u304F\u30E1\u30FC\u30EB(\u9001\u4FE1\u6E08\u307F\u30D5\u30E9\u30B0\u306F\u7ACB\u3064)\n\nnarou update\nnarou mail           # update\u3067\u65B0\u7740\u304C\u3042\u3063\u305F\u5C0F\u8AAC\u3092\u5168\u3066\u30E1\u30FC\u30EB\n\nnarou mail --force   # \u51CD\u7D50\u6E08\u4EE5\u5916\u306E\u5168\u3066\u306E\u5C0F\u8AAC\u3092\u5F37\u5236\u7684\u306B\u30E1\u30FC\u30EB(\u4F7F\u3044\u65B9\u306B\u6CE8\u610F)\n\n  Options:\n  EOS\n\n  @opt.on(\"-f\", \"--force\", \"\u5168\u3066\u306E\u5C0F\u8AAC\u3092\u5F37\u5236\u7684\u306B\u9001\u4FE1\") {\n    @options[\"force\"] = true\n  }\nend\n"