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 |
# File 'lib/vines/command/start.rb', line 6 def run(opts) raise 'vines [--pid FILE] start' unless opts[:args].size == 0 require opts[:config] server = XmppServer.new(Config.instance) daemonize(opts) if opts[:daemonize] server.start end |