forked from VoiceLayer/dispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
51 lines (44 loc) · 1.24 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
defmodule Dispatch.Mixfile do
use Mix.Project
@version File.read!("VERSION") |> String.strip
def project do
[app: :dispatch,
version: @version,
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
source_url: "https://github.com/VoiceLayer/dispatch",
description: description(),
package: package(),
deps: deps(),
docs: [extras: ["README.md"]]]
end
# Configuration for the OTP application
#
def application do
[applications: [:logger, :phoenix_pubsub],
mod: {Dispatch, []}]
end
# Dependencies can be Hex packages:
#
defp deps do
[
{:hash_ring, github: "voicelayer/hash-ring"},
{:phoenix_pubsub, "~> 1.0.0"},
{:ex_doc, "~> 0.13.0", only: :dev}
]
end
defp description do
"""
A distributed service registry built on top of phoenix_pubsub.
Requests are dispatched to one or more services based on hashed keys.
"""
end
defp package do
[files: ~w(lib test mix.exs README.md LICENSE.md VERSION),
maintainers: ["Gary Rennie", "Gabi Zuniga"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/voicelayer/dispatch",
"Docs" => "http://hexdocs.pm/dispatch"}]
end
end