Sha256: 154c5a79b68fe6e72c3ddfc55aab3344c21fc92eb3609d066fd2b4e4abeea55e

Contents?: true

Size: 610 Bytes

Versions: 26

Compression:

Stored size: 610 Bytes

Contents

module KnapsackPro
  class BaseAllocatorBuilder
    def initialize(adapter_class)
      @adapter_class = adapter_class
    end

    def allocator
      raise NotImplementedError
    end

    def test_dir
      test_file_pattern.split('/').first
    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

26 entries across 26 versions & 1 rubygems

Version Path
knapsack_pro-0.42.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.41.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.40.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.39.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.38.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.37.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.36.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.35.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.34.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.33.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.32.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.31.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.30.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.29.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.28.1 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.28.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.27.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.26.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.25.0 lib/knapsack_pro/base_allocator_builder.rb
knapsack_pro-0.24.0 lib/knapsack_pro/base_allocator_builder.rb