Sha256: a2ef2f798551629aa573d9b25aaf53f138576644ccc406cfe1b60f1a64c59f79

Contents?: true

Size: 646 Bytes

Versions: 20

Compression:

Stored size: 646 Bytes

Contents

module KnapsackPro
  module Runners
    class BaseRunner
      def self.run(args)
        raise NotImplementedError
      end

      def initialize(adapter_class)
        @allocator_builder = KnapsackPro::AllocatorBuilder.new(adapter_class)
        @allocator = allocator_builder.allocator
      end

      def test_file_paths
        allocator.test_file_paths
      end

      def stringify_test_file_paths
        KnapsackPro::TestFilePresenter.stringify_paths(test_file_paths)
      end

      def test_dir
        allocator_builder.test_dir
      end

      private

      attr_reader :allocator_builder,
        :allocator
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
knapsack_pro-0.14.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.13.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.12.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.11.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.10.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.9.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.8.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.7.2 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.7.1 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.7.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.6.1 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.6.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.5.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.4.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.3.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.2.1 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.2.0 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.1.2 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.1.1 lib/knapsack_pro/runners/base_runner.rb
knapsack_pro-0.1.0 lib/knapsack_pro/runners/base_runner.rb