Sha256: 624f620faff4b9f3c25deba4ada8253e45086cdd7bbf300731809704ef34c267
Contents?: true
Size: 663 Bytes
Versions: 38
Compression:
Stored size: 663 Bytes
Contents
module KnapsackPro class BaseAllocatorBuilder def initialize(adapter_class) @adapter_class = adapter_class end def allocator raise NotImplementedError end def test_dir KnapsackPro::Config::Env.test_dir || test_file_pattern.split('/').first.gsub(/({)/, '') end private attr_reader :adapter_class def env KnapsackPro::Config::Env end def repository_adapter KnapsackPro::RepositoryAdapterInitiator.call end def test_file_pattern TestFilePattern.call(adapter_class) end def test_files KnapsackPro::TestFileFinder.call(test_file_pattern) end end end
Version data entries
38 entries across 38 versions & 1 rubygems