class KnapsackPro::BaseAllocatorBuilder
Constants
- TEST_RUNNER_MAP
Attributes
Public Class Methods
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 13 def initialize(adapter_class) @adapter_class = adapter_class ENV['KNAPSACK_PRO_TEST_RUNNER'] = TEST_RUNNER_MAP[adapter_class] end
Public Instance Methods
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 18 def allocator raise NotImplementedError end
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 22 def test_dir KnapsackPro::Config::Env.test_dir || TestFilePattern.test_dir(adapter_class) end
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 26 def test_suite KnapsackPro::TestSuite.new(adapter_class) end
Private Instance Methods
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 34 def env KnapsackPro::Config::Env end
Source
# File lib/knapsack_pro/base_allocator_builder.rb, line 38 def repository_adapter KnapsackPro::RepositoryAdapterInitiator.call end