Sha256: c5ef9ad08dc1339ef5d426c55b95c4c5c41edfb389baecaeef86803d1fc00e5b
Contents?: true
Size: 860 Bytes
Versions: 30
Compression:
Stored size: 860 Bytes
Contents
module Knapsack class AllocatorBuilder def initialize(adapter_class) @adapter_class = adapter_class set_report_path end def allocator Knapsack::Allocator.new({ report: Knapsack.report.open, test_file_pattern: test_file_pattern, ci_node_total: Knapsack::Config::Env.ci_node_total, ci_node_index: Knapsack::Config::Env.ci_node_index }) end def test_dir Knapsack::Config::Env.test_dir || test_file_pattern.split('/').first end private def set_report_path Knapsack.report.config({ report_path: report_path }) end def report_path Knapsack::Config::Env.report_path || @adapter_class::REPORT_PATH end def test_file_pattern Knapsack::Config::Env.test_file_pattern || @adapter_class::TEST_DIR_PATTERN end end end
Version data entries
30 entries across 30 versions & 1 rubygems