Sha256: 472f3ac6f90894db7fd8fb0853d4915e44d334c51bd8fc01673cbda5d4179659

Contents?: true

Size: 999 Bytes

Versions: 13

Compression:

Stored size: 999 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Languages
        class TaskRunner
          attr_reader :ctx

          def self.for(ctx, language)
            task_runners = {
              "typescript" => TypeScriptTaskRunner,
              "wasm" => WasmTaskRunner,
            }

            task_runner = task_runners[language] || WasmTaskRunner
            task_runner.new(ctx)
          end

          def initialize(ctx)
            @ctx = ctx
          end

          def build
            raise NotImplementedError
          end

          def dependencies_installed?
            raise NotImplementedError
          end

          def install_dependencies
            raise NotImplementedError
          end

          def metadata_file_location
            raise NotImplementedError
          end

          def library_version(_library_name)
            raise NotImplementedError
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shopify-cli-2.25.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.24.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.23.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.22.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.21.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.20.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.20.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.19.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.18.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.18.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.17.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.16.1 lib/project_types/script/layers/infrastructure/languages/task_runner.rb
shopify-cli-2.16.0 lib/project_types/script/layers/infrastructure/languages/task_runner.rb