Permalink
Browse files

Rename `appstart_loader` to `appstarter` because of reltool strangeness.

  • Loading branch information...
1 parent 9124a00 commit 3bc4adf24d8d79c676e1f18c28035ed1259c1a8c @hyperthunk committed Apr 26, 2011
Showing with 13 additions and 4 deletions.
  1. +1 −1 ebin/appstart.app
  2. +7 −1 src/appstart.erl
  3. +5 −2 src/{appstart_loader.erl → appstarter.erl}
View
@@ -2,7 +2,7 @@
appstart,
[{description,"OTP Application Startup Helper"},
{vsn,"0.0.2"},
- {modules,[appstart, appstart_loader]},
+ {modules,[appstart, appstarter]},
{registered,[]},
{applications,[kernel,stdlib]},
{env,[]}]}.
View
@@ -28,10 +28,16 @@
%% -----------------------------------------------------------------------------
-module(appstart).
--export([start/1, start/2, start_deps/1]).
+-export([start/1,
+ start/2,
+ start_deps/1,
+ load/1]).
-define(FIND_ERROR_PREDICATE, fun({error, _}) -> true; (_) -> false end).
+load(App) ->
+ appstart_loader:load(App).
+
%% @doc Starts the OTP application `AppName', forcing all dependent applications
%% to start first. For example, if you application specification contains a
%% {applications,[kernel,stdlib,sasl,riak_err]} tuple, the `sasl' and `riak_err'
@@ -29,13 +29,16 @@
%%
%% -----------------------------------------------------------------------------
--module(appstart_loader).
+-module(appstarter).
-author('Tim Watson <watson.timothy@gmail.com>').
-behaviour(application).
--export([start/2, stop/1]).
+-export([start/2, stop/1, load/1]).
-export([fail/2]).
+load(App) ->
+ application:load(App).
+
%% ===================================================================
%% Application callbacks
%% ===================================================================

0 comments on commit 3bc4adf

Please sign in to comment.