Class: Vines::Command::Start
- Inherits:
-
Object
- Object
- Vines::Command::Start
- Defined in:
- lib/vines/command/start.rb
Instance Method Summary collapse
Instance Method Details
#run(opts) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/vines/command/start.rb', line 6 def run(opts) raise 'vines [--pid FILE] start' unless opts[:args].size == 0 require opts[:config] config = Config.instance if opts[:debug] config.debug = true config.log("debug") end server = XmppServer.new(config) daemonize(opts) if opts[:daemonize] server.start end |