Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 719 Bytes
defmodule Peerage.Via.List do
@behaviour Peerage.Provider
@moduledoc """
Uses configurable list of
node names. Good for development, or when you know
production node names ahead of time. See example below.
### Example
config :peerage, via: Peerage.Via.List
config :peerage, node_list: [
$ iex --name myapp1@ -S mix # one shell
$ iex --name myapp2@ -S mix # other shell
I usually wrap the above with a script for launching dev shell,
and prod release shells, so that I just call `bin/dev 1` or
`bin/prod 2`.
def poll do
Application.fetch_env!(:peerage, :node_list)