Class: TTK::Daemons::Master

Inherits:
Daemon show all
Includes:
Concrete
Defined in:
lib/ttk/daemons/Master.rb

Instance Method Summary collapse

Instance Method Details

#start_daemon(opts, argv) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ttk/daemons/Master.rb', line 14

def start_daemon(opts, argv)
  super
  sub_tester_uris = []
  argv.each { |arg| sub_tester_uris << URI.parse(arg) }
  tester_master = Services::TesterMaster.new
  add_observable(tester_master)
  start_service(tester_master,
                opts[:tester_uri],
                opts[:tester_name],
                sub_tester_uris)
end