GameServer.Hooks.PluginBuilder (GameServer v1.0.509)
Builds an OTP plugin bundle from plugin source code on disk.
This is intended for admin-only workflows in development/self-hosted setups.
It runs mix commands on the server host/container.
Summary
Types
@type build_result() :: %{ ok?: boolean(), plugin: String.t(), source_dir: String.t(), started_at: DateTime.t(), finished_at: DateTime.t(), steps: [step_result()] }
@type step_result() :: %{ cmd: String.t(), status: non_neg_integer(), output: String.t() }
Functions
@spec build(String.t()) :: {:ok, build_result()} | {:error, term()}
@spec list_buildable_plugins() :: [String.t()]
@spec sources_dir() :: String.t()