Sha256: 1d5e20de9c1889f7af7c9b24e1e953ce9c1633fa58daaaa9ffedb52a5bd80545

Contents?: true

Size: 525 Bytes

Versions: 16

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Languages
        class TaskRunner
          TASK_RUNNERS = {
            "assemblyscript" => AssemblyScriptTaskRunner,
            "typescript" => TypeScriptTaskRunner,
          }

          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

16 entries across 16 versions & 1 rubygems

Version Path
shopify-cli-2.10.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.10.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.9.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.8.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.7.4 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.7.3 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.7.2 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.7.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.7.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.6 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.5 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.4 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.3 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.2 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.6.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb