Module: Mutineer::DaemonServer::DaemonTempIgnore
- Defined in:
- lib/mutineer/daemon_server.rb
Overview
Skips mutant files of both modes (OrphanGuard::TEMP_BASENAME) when Zeitwerk scans an autoload directory. The boot sweep keeps a file another process still holds. Zeitwerk skips a hidden one (#253), but one an older version wrote has no dot, and it would stop the next boot, because its name is not a constant.
Instance Method Summary collapse
Instance Method Details
#setup ⇒ void
This method returns an undefined value.
75 76 77 78 79 80 81 |
# File 'lib/mutineer/daemon_server.rb', line 75 def setup dirs = Array(Mutineer::DaemonServer.instance_variable_get(:@source_dirs)) dirs.each do |dir| ignore(File.join(dir, Mutineer::OrphanGuard::TEMP_BASENAME)) end super end |