Sha256: b6bc08add287f5473a3ea9247219b53d8143773bd1bb437b1d94ff2347000f0d

Contents?: true

Size: 492 Bytes

Versions: 9

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      class TaskRunner
        TASK_RUNNERS = {
          "assemblyscript" => Infrastructure::AssemblyScriptTaskRunner,
          "rust" => Infrastructure::RustTaskRunner,
        }

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-1.12.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.11.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.10.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.9.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.9.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.8.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.7.1 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.7.0 lib/project_types/script/layers/infrastructure/task_runner.rb
shopify-cli-1.6.0 lib/project_types/script/layers/infrastructure/task_runner.rb