Class: CoverRage::Launcher

Inherits:
Object
  • Object
show all
Defined in:
lib/cover_rage/launcher.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#recorderObject (readonly)

Returns the value of attribute recorder.



10
11
12
# File 'lib/cover_rage/launcher.rb', line 10

def recorder
  @recorder
end

Class Method Details

.start(**kwargs) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/cover_rage/launcher.rb', line 12

def self.start(**kwargs)
  if @recorder.nil?
    @recorder = CoverRage::Recorder.new(
      store: CoverRage::Config.store,
      path_prefix: CoverRage::Config.path_prefix,
      **kwargs
    )
  end
  @recorder.start
  Process.singleton_class.prepend(CoverRage::ForkHook)
end