doex v0.7.1 Doex.Worker View Source

Provides global access to the loaded configs, the API is available directly with Doex, so there is little need to dive too deep into here to learn how to use the API, but rather for understanding the internals of the project.

To lookup the loaded configs (or to load them for the first time),

  Doex.config

Which will call

  GenServer.call(Doex.Worker, :config)

To force a reload on the global configs,

  Doex.reload

Which will call

  GenServer.call(Doex.Worker, :reload)

If you wanted to load a different config file, then,

  Doex.reload("/path/to/new/file.doex")

Which will call

  GenServer.call(Doex.Worker, {:reload, "/path/to/new/file.doex"})

Link to this section Summary

Link to this section Functions