rebar/inttest/proto_protobuffs/src/foo_sup.erl
Tomas Abrahamsson 9f057f29c5 Add inttest for default proto compiler (protobuffs)
This borrows heavily from the inttest for gpb, many thanks
to Luis Rascão for providing a most useful example.
2014-10-29 23:46:01 +01:00

15 lines
370 B
Erlang

%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
-module(foo_sup).
-behavior(supervisor).
-export([start_link/0,
init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
init(_Args) ->
FooChild = {foo,{foo, start_link, []}, permanent, 5000, worker, [foo]},
{ok,{{one_for_all,1,1}, [FooChild]}}.