View Source Ontogen.Config.Generator (Ontogen v0.1.1)

Generator for the configuration files of an Ontogen repository.

Summary

Functions

Generates the configuration files for an Ontogen repository.

Functions

Link to this function

generate(destination, opts \\ [])

View Source
@spec generate(
  Path.t(),
  keyword()
) :: :ok

Generates the configuration files for an Ontogen repository.

The destination is the target directory where the generated configuration files are written to. If the directory does not exist, it is created.

Options

  • :adapter - Initial store adapter (optional, default: Ontogen.Store for the generic store)
  • :template_dir - Custom template directory
  • :force - Flag to overwrite existing files (default: false)
  • :assigns - Additional assigns for EEx templates