module DeepTest
Public Class Methods
drb_safe_fork(&block)
click to toggle source
Fork in a separate thread. If we fork from a DRb thread
(a thread handling a method call invoked over drb), DRb still thinks the current object is the DRb Front Object, and reports its uri as the same as in the parent process, even if you restart DRb service.
# File lib/deep_test.rb, line 14 def self.drb_safe_fork(&block) Thread.new {Process.fork(&block)}.value end
init(options)
click to toggle source
# File lib/deep_test.rb, line 18 def self.init(options) return if @initialized @initialized = true Metrics::Gatherer.setup(options) end
logger()
click to toggle source
# File lib/deep_test.rb, line 3 def logger @logger ||= DeepTest::Logger.new($stdout) end