Accrue.Install.Templates (accrue v1.5.1)

Copy Markdown View Source

Renders host-owned installer templates.

Summary

Functions

Config docs generated from the Accrue NimbleOptions schema.

Renders all generated files for the discovered host project.

Renders only the host migration files.

Runtime config snippet for manual installs.

Returns a redacted Stripe test-mode readiness report.

Validates planned installer config against Accrue.Config.

Functions

config_docs()

Config docs generated from the Accrue NimbleOptions schema.

render_all(project, opts)

@spec render_all(Accrue.Install.Project.t(), Accrue.Install.Options.t()) :: [
  {Path.t(), String.t()}
]

Renders all generated files for the discovered host project.

render_migrations(project, opts)

@spec render_migrations(Accrue.Install.Project.t(), Accrue.Install.Options.t()) :: [
  {Path.t(), String.t()}
]

Renders only the host migration files.

The installer uses this safe subset when project discovery cannot patch the router or config confidently. This keeps the database prerequisite explicit instead of reporting a manual install while silently leaving every Accrue table absent.

runtime_config_snippet(project, opts)

Runtime config snippet for manual installs.

stripe_test_mode_readiness(env \\ System.get_env())

Returns a redacted Stripe test-mode readiness report.

validate_planned_config!(project)

Validates planned installer config against Accrue.Config.