Class: MyCLI
- Inherits:
-
Thor
- Object
- Thor
- MyCLI
- Includes:
- Mmailer::Client
- Defined in:
- lib/mmailer/commands.rb
Instance Method Summary collapse
- #config ⇒ Object
- #pause ⇒ Object
- #resume ⇒ Object
- #server ⇒ Object
- #start(from = 0) ⇒ Object
- #stop ⇒ Object
- #version ⇒ Object
Methods included from Mmailer::Client
Instance Method Details
#config ⇒ Object
42 43 44 |
# File 'lib/mmailer/commands.rb', line 42 def config client(:config, ) end |
#pause ⇒ Object
18 19 20 |
# File 'lib/mmailer/commands.rb', line 18 def pause client(:pause) end |
#resume ⇒ Object
23 24 25 |
# File 'lib/mmailer/commands.rb', line 23 def resume client(:resume) end |
#server ⇒ Object
7 8 9 10 |
# File 'lib/mmailer/commands.rb', line 7 def server require 'mmailer' Mmailer.start_server end |
#start(from = 0) ⇒ Object
13 14 15 |
# File 'lib/mmailer/commands.rb', line 13 def start(from=0) client(:start, from.to_i) end |
#stop ⇒ Object
28 29 30 |
# File 'lib/mmailer/commands.rb', line 28 def stop client(:stop) end |