# frozen_string_literal: true require 'ffi' require_relative 'alamojoe/version' module Alamojoe extend FFI::Library # set environment variables ENV['EXSEC_RUNTIME_LANGUAGE'] = 'RUBY' ENV['EXSEC_RUNTIME_LANGUAGE_VERSION'] = RUBY_VERSION ENV['EXSEC_APP_DIR'] = Dir.pwd ffi_lib (__dir__ + '/libcore.so') attach_function :configure, [:string], :int class Error < StandardError end end