Sha256: 1d0a75e9bb22a0b38422ac6a7d679b53d7c69a6df7f4649d5f6b7c46bb18502b

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Languages
        class TaskRunner
          TASK_RUNNERS = {
            "assemblyscript" => AssemblyScriptTaskRunner,
            "rust" => 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
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify-cli-2.5.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.4.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.3.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.2.2 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.2.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.2.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.1.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.0.2 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.0.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.0.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-1.14.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-1.13.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-1.13.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb