Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyrog committed Feb 26, 2014
0 parents commit 24e4b09
Show file tree
Hide file tree
Showing 10 changed files with 1,094 additions and 0 deletions.
Empty file added README.md
Empty file.
2 changes: 2 additions & 0 deletions ebin/.gitignore
@@ -0,0 +1,2 @@
*.app
*.beam
10 changes: 10 additions & 0 deletions rebar.config
@@ -0,0 +1,10 @@
%% -*- erlang -*-
%% Config file for tellstick application.
%%
{erl_opts, [debug_info]}.

{deps, [ {hex, ".*", {git, "git@github.com:tonyrog/hex.git"}},
{lager, ".*", {git, "git://github.com/Feuerlabs/lager.git",
"1.0.0.fl.2"}},
{uart, ".*", {git, "git@github.com:tonyrog/uart.git"}}
]}.
8 changes: 8 additions & 0 deletions rebar.config.script
@@ -0,0 +1,8 @@
%% -*- erlang -*-
%% Config script file for uart-application
case os:getenv("REBAR_DEPS") of
false -> CONFIG; % env var not defined
[] -> CONFIG; % env var set to empty string
Dir ->
lists:keystore(deps_dir, 1, CONFIG, {deps_dir, Dir})
end.
12 changes: 12 additions & 0 deletions src/tellstick.app.src
@@ -0,0 +1,12 @@
{application, tellstick,
[
{description, ""},
{vsn, "1"},
{registered, []},
{applications, [
kernel,
stdlib
]},
{mod, { tellstick_app, []}},
{env, []}
]}.
16 changes: 16 additions & 0 deletions src/tellstick.erl
@@ -0,0 +1,16 @@
%%% @author Tony Rogvall <tony@rogvall.se>
%%% @copyright (C) 2014, Tony Rogvall
%%% @doc
%%% Starter kit
%%% @end
%%% Created : 26 Feb 2014 by Tony Rogvall <tony@rogvall.se>

-module(tellstick).

-export([start/0]).

start() ->
application:start(tellstick).

%% wrap tellstick_server calls ?

20 changes: 20 additions & 0 deletions src/tellstick_app.erl
@@ -0,0 +1,20 @@
-module(tellstick_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================

start(_StartType, _StartArgs) ->
Options = case application:get_env(tellstick, options) of
undefined -> [];
{ok, O1} -> O1
end,
tellstick_sup:start_link(Options).

stop(_State) ->
ok.

0 comments on commit 24e4b09

Please sign in to comment.