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

build_result()

@type build_result() :: %{
  ok?: boolean(),
  plugin: String.t(),
  source_dir: String.t(),
  started_at: DateTime.t(),
  finished_at: DateTime.t(),
  steps: [step_result()]
}

step_result()

@type step_result() :: %{
  cmd: String.t(),
  status: non_neg_integer(),
  output: String.t()
}

Functions

build(plugin_name)

@spec build(String.t()) :: {:ok, build_result()} | {:error, term()}

list_buildable_plugins()

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

sources_dir()

@spec sources_dir() :: String.t()