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.
Starts Serum.DevServer.Service
GenServer.
Subscribes to this GenServer for notifications.
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
dirty?()
dirty?() :: boolean()
dirty?() :: boolean()
Checks if the source directory is marked as dirty.
port()
port() :: pos_integer()
port() :: pos_integer()
Returns the port number the server currently listening on.
rebuild()
rebuild() :: :ok
rebuild() :: :ok
Rebuilds the current Serum project.
site_dir()
site_dir() :: binary()
site_dir() :: binary()
Returns the output directory (under temporary directory).
source_dir()
source_dir() :: binary()
source_dir() :: binary()
Returns the source directory.
start_link(dir, site, portnum)
start_link(binary(), binary(), pos_integer()) ::
{:ok, pid()} | {:error, atom()}
start_link(binary(), binary(), pos_integer()) :: {:ok, pid()} | {:error, atom()}
Starts Serum.DevServer.Service
GenServer.
subscribe()
subscribe() :: :ok
subscribe() :: :ok
Subscribes to this GenServer for notifications.