Sha256: 184364c3db09cbc6c6c844dd9523e96b3b595f4041405a4e467d9621441b17fb
Contents?: true
Size: 775 Bytes
Versions: 2
Compression:
Stored size: 775 Bytes
Contents
# frozen_string_literal: true module Script module Layers module Infrastructure module Languages class WasmTaskRunner BYTECODE_FILE = "script.wasm" attr_reader :ctx, :script_name def initialize(ctx, script_name) @ctx = ctx @script_name = script_name end def dependencies_installed? true end def library_version(_library_name) nil end def metadata_file_location "metadata.json" end def build raise Errors::WebAssemblyBinaryNotFoundError unless ctx.file_exist?(BYTECODE_FILE) ctx.binread(BYTECODE_FILE) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems