pupoxide 0.2.1

A high-performance, memory-safe, declarative configuration management tool inspired by Puppet.
use crate::infrastructure::stash::Stash;
use rhai::Engine;
use std::path::PathBuf;
use std::sync::{Arc, Mutex};

pub mod composition;
pub mod context;
pub mod operators;
pub mod resources;
pub mod stash;
pub mod types;

pub fn register_all(
    engine: &mut Engine,
    stash: Arc<Option<Stash>>,
    module_path: Arc<Mutex<Option<PathBuf>>>,
) {
    types::register(engine);
    stash::register(engine, stash);
    operators::register(engine);
    composition::register(engine, module_path);
    resources::register(engine);
}