main()
click to toggle source
# File lib/tj3d.rb, line 75 75: def main 76: files = super 77: broker = ProjectBroker.new 78: @rc.configure(self, 'global') 79: @rc.configure(@log, 'global.log') 80: @rc.configure(broker, 'global') 81: @rc.configure(broker, 'daemon') 82: 83: # Set some config variables if corresponding data was provided via the 84: # command line. 85: broker.port = @port if @port 86: broker.uriFile = @uriFile.untaint 87: broker.enableWebServer = @webServer 88: broker.webServerPort = @webServerPort if @webServerPort 89: broker.projectFiles = sortInputFiles(files) unless files.empty? 90: broker.daemonize = @daemonize 91: # Create log files for standard IO for each child process if the daemon 92: # is not disconnected from the terminal. 93: broker.logStdIO = !@daemonize 94: 95: broker.start 96: end