Sha256: 8f6a85694a62bb88519d288c264f18ea43f77cfd24c3665f518182c68aaf7604
Contents?: true
Size: 818 Bytes
Versions: 3
Compression:
Stored size: 818 Bytes
Contents
module Knapsack module Distributors class LeftoverDistributor < BaseDistributor def report_specs @report_specs ||= report.keys end def leftover_specs @leftover_specs ||= all_specs - report_specs end private def post_assign_spec_files_to_node node_index = 0 leftover_specs.each do |spec_file| node_specs[node_index] << spec_file node_index += 1 node_index %= ci_node_total end end def post_specs_for_node(node_index) spec_files = node_specs[node_index] return unless spec_files spec_files end def default_node_specs @node_specs = [] ci_node_total.times do |index| @node_specs[index] = [] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems