Accrue.Install.Project (accrue v0.3.0)

Copy Markdown View Source

Phoenix host project discovery for mix accrue.install.

Summary

Functions

Discovers the host Phoenix project shape.

Types

t()

@type t() :: %Accrue.Install.Project{
  app: term(),
  app_module: term(),
  billable: term(),
  config_path: term(),
  has_accrue_admin?: term(),
  has_oban?: term(),
  has_sigra?: term(),
  manual?: term(),
  migrations_path: term(),
  mix_path: term(),
  repo: term(),
  root: term(),
  router_path: term(),
  runtime_config_path: term()
}

Functions

discover!(opts)

@spec discover!(Accrue.Install.Options.t()) :: t()

Discovers the host Phoenix project shape.

If router/repo/app cannot be determined safely, discovery marks the project as manual so the installer can print snippets instead of mutating files.