class MyCLI
Public Instance Methods
config()
click to toggle source
# File lib/mmailer/commands.rb, line 42 def config client(:config, options) end
pause()
click to toggle source
# File lib/mmailer/commands.rb, line 18 def pause client(:pause) end
resume()
click to toggle source
# File lib/mmailer/commands.rb, line 23 def resume client(:resume) end
server()
click to toggle source
# File lib/mmailer/commands.rb, line 7 def server require 'mmailer' Mmailer.start_server end
start(from=0)
click to toggle source
# File lib/mmailer/commands.rb, line 13 def start(from=0) client(:start, from.to_i) end
stop()
click to toggle source
# File lib/mmailer/commands.rb, line 28 def stop client(:stop) end
version()
click to toggle source
# File lib/mmailer/commands.rb, line 33 def version require 'mmailer/version' puts Mmailer::VERSION end