Class: Knapsack::AllocatorBuilder
- Inherits:
-
Object
- Object
- Knapsack::AllocatorBuilder
- Defined in:
- lib/knapsack/allocator_builder.rb
Instance Method Summary collapse
- #allocator ⇒ Object
-
#initialize(adapter_class) ⇒ AllocatorBuilder
constructor
A new instance of AllocatorBuilder.
- #test_dir ⇒ Object
Constructor Details
#initialize(adapter_class) ⇒ AllocatorBuilder
Returns a new instance of AllocatorBuilder.
3 4 5 6 |
# File 'lib/knapsack/allocator_builder.rb', line 3 def initialize(adapter_class) @adapter_class = adapter_class set_report_path end |
Instance Method Details
#allocator ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/knapsack/allocator_builder.rb', line 8 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 |