Method: Otaku::Server.run_server_script
- Defined in:
- lib/otaku/server.rb
.run_server_script ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/otaku/server.rb', line 22 def run_server_script script = File.join(Otaku.root, 'otaku.rb') args = Encoder.encode(:config => Otaku.config, :handler => @handler) load_paths = [@handler.root, Otaku.root].join(' -I') @process = IO.popen(%|#{Otaku.ruby} -I#{load_paths} #{script} "#{args.gsub('"','\"')}"|,'r') sleep Otaku.init_wait_time end |