Don't store UI instances in the options instance, which will need to be dumped over DRb. UI instances may not be dumpable and we don't want to have to start yet another DRb Server
# File lib/deep_test/options.rb, line 43 def gathering_metrics? !@metrics_file.nil? end
# File lib/deep_test/options.rb, line 76 def mirror_path(base) raise "No source directory specified in sync_options" unless sync_options[:source] relative_mirror_path = origin_hostname + sync_options[:source].gsub('/','_') "#{base}/#{relative_mirror_path}" end
# File lib/deep_test/options.rb, line 47 def new_listener_list listeners = worker_listener.split(',').map do |listener| eval(listener).new end ListenerList.new(listeners) end
# File lib/deep_test/options.rb, line 82 def new_workers if distributed_server.nil? LocalWorkers.new self else begin server = Distributed::TestServer.connect(self) Distributed::RemoteWorkerClient.new(self, server, LocalWorkers.new(self)) rescue => e ui_instance.distributed_failover_to_local("connect", e) LocalWorkers.new self end end end
# File lib/deep_test/options.rb, line 54 def origin_hostname (Socket.gethostname == @origin_hostname) ? 'localhost' : @origin_hostname end
# File lib/deep_test/options.rb, line 96 def server Server.remote_reference(origin_hostname, server_port) end
# File lib/deep_test/options.rb, line 67 def to_command_line command_line = [] VALID_OPTIONS.each do |option| value = send(option.name) command_line << option.to_command_line(value) end command_line.compact.join(' ') end
# File lib/deep_test/options.rb, line 19 def ui=(value) @ui = value.to_s end
Generated with the Darkfish Rdoc Generator 2.