class Enparallel::LogGroup
Attributes
tasks[R]
type[R]
Public Class Methods
failure(pool)
click to toggle source
# File lib/enparallel/log_group.rb, line 31 def self.failure(pool) of(:failure, pool) end
new(type, tasks)
click to toggle source
# File lib/enparallel/log_group.rb, line 5 def initialize(type, tasks) @type = type @tasks = tasks end
of(type, pool)
click to toggle source
# File lib/enparallel/log_group.rb, line 23 def self.of(type, pool) LogGroup.new(type, pool.tasks_of(type)) end
success(pool)
click to toggle source
# File lib/enparallel/log_group.rb, line 27 def self.success(pool) of(:success, pool) end
Public Instance Methods
has_tasks?()
click to toggle source
# File lib/enparallel/log_group.rb, line 14 def has_tasks? tasks.length > 0 end
to_soml()
click to toggle source
# File lib/enparallel/log_group.rb, line 10 def to_soml tasks.join("\n\n") + "\n" end
write(path)
click to toggle source
# File lib/enparallel/log_group.rb, line 18 def write(path) size = File.write(path, to_soml) [path, Util.bytes_to_human(size)] end