aboutsummaryrefslogtreecommitdiffstats
path: root/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
diff options
context:
space:
mode:
authorYurii Rashkovskii <[email protected]>2013-01-29 10:18:52 -0800
committerJosé Valim <[email protected]>2013-02-06 14:08:49 -0700
commitb69903435e0278a6a91749d729f08ac01a8f623a (patch)
treeec5ea1c7304ee50c3ab9b490ca7f0af6ebbe33d3 /examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
parentecb234693c82553261738c28f883b327a2d586e1 (diff)
downloadcowboy-b69903435e0278a6a91749d729f08ac01a8f623a.tar.gz
cowboy-b69903435e0278a6a91749d729f08ac01a8f623a.tar.bz2
cowboy-b69903435e0278a6a91749d729f08ac01a8f623a.zip
Elixir hello world example
Diffstat (limited to 'examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex')
-rw-r--r--examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex b/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
new file mode 100644
index 0000000..f9b569f
--- /dev/null
+++ b/examples/elixir_hello_world/lib/elixir_hello_world/supervisor.ex
@@ -0,0 +1,12 @@
+defmodule ElixirHelloWorld.Supervisor do
+ use Supervisor.Behaviour
+
+ def start_link do
+ :supervisor.start_link(__MODULE__, [])
+ end
+
+ def init([]) do
+ children = []
+ supervise children, strategy: :one_for_one
+ end
+end