Crosswake.Install.Patcher (crosswake v0.1.0)

View Source

Applies explicit, idempotent Crosswake install patches to host-owned files.

Summary

Types

patch_result()

@type patch_result() :: %{
  router_file: String.t(),
  changed?: boolean(),
  actions: [atom()]
}

Functions

marker_lines()

@spec marker_lines() :: [String.t()]

patch_router(router_path, policy_module)

@spec patch_router(String.t(), String.t()) ::
  {:ok, patch_result()} | {:error, String.t()}