Sha256: 0ca49e1bb0faccfa9dd549210bbd45dca08501c1016013cdab9b04dcbb03bb3c

Contents?: true

Size: 294 Bytes

Versions: 11

Compression:

Stored size: 294 Bytes

Contents

require 'tork/config'
require 'fileutils'

Tork::Config.before_fork_hooks.unshift lambda {
  |test_file, line_numbers, log_file, worker_number|

  dirname, basename = File.split(log_file)
  FileUtils.mkdir_p log_dir = File.join('log', dirname)
  log_file.replace File.join(log_dir, basename)
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tork-18.2.4 lib/tork/config/logdir.rb
tork-18.2.3 lib/tork/config/logdir.rb
tork-18.2.2 lib/tork/config/logdir.rb
tork-18.2.1 lib/tork/config/logdir.rb
tork-18.2.0 lib/tork/config/logdir.rb
tork-18.1.0 lib/tork/config/logdir.rb
tork-18.0.1 lib/tork/config/logdir.rb
tork-18.0.0 lib/tork/config/logdir.rb
tork-17.1.0 lib/tork/config/logdir.rb
tork-17.0.1 lib/tork/config/logdir.rb
tork-17.0.0 lib/tork/config/logdir.rb