Module: Wasmify::Rails::Wasmtimer
- Defined in:
- lib/wasmify/rails/wasmtimer.rb
Overview
A wrapper for the wasmtime CLI used to verify compiled modules.
Class Method Summary collapse
Class Method Details
.run(wasm_path, script) ⇒ Object
9 10 11 12 13 |
# File 'lib/wasmify/rails/wasmtimer.rb', line 9 def run(wasm_path, script) return unless wasmtime_installed? exec(%Q(wasmtime run --dir ./storage::/rails/storage #{wasm_path} -W0 -r/bundle/setup -e '#{script}')) end |