Sha256: abe7a50feede2fcfd6f1ed32bcefaaa3ea19f683c5fd0cffe3dd22572c3c7d33

Contents?: true

Size: 468 Bytes

Versions: 17

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      class TaskRunner
        TASK_RUNNERS = {
          "ts" => Infrastructure::AssemblyScriptTaskRunner,
        }

        def self.for(ctx, language, script_name, script_source_file)
          raise Errors::TaskRunnerNotFoundError unless TASK_RUNNERS[language]
          TASK_RUNNERS[language].new(ctx, script_name, script_source_file)
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shopify-cli-1.5.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.4.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.4.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.3.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.3.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.2.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.1.2 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.1.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.1.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.5 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.4 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.3 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.2 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.0.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-0.9.3 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-0.9.2 lib/project_types/script/layers/infrastructure/task_runner.rb