serum v1.0.0 Serum.DevServer.Service

A GenServer that provides some utility functions while the Serum development server is running.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Checks if the source directory is marked as dirty.

Returns the port number the server currently listening on.

Rebuilds the current Serum project.

Returns the output directory (under temporary directory).

Returns the source directory.

Subscribes to this GenServer for notifications.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

dirty?()
dirty?() :: boolean()

Checks if the source directory is marked as dirty.

Returns the port number the server currently listening on.

Link to this function

rebuild()
rebuild() :: :ok

Rebuilds the current Serum project.

Link to this function

site_dir()
site_dir() :: binary()

Returns the output directory (under temporary directory).

Link to this function

source_dir()
source_dir() :: binary()

Returns the source directory.

Link to this function

start_link(dir, site, portnum)
start_link(binary(), binary(), pos_integer()) ::
  {:ok, pid()} | {:error, atom()}

Starts Serum.DevServer.Service GenServer.

Link to this function

subscribe()
subscribe() :: :ok

Subscribes to this GenServer for notifications.