Michael,

 What are you thinking. Just some additional docs?

On Wed, Dec 10, 2008 at 1:45 AM, Michael Truog <[email protected]> wrote:
>
> I think some code might be useful in the documentation or perhaps
> somehow inserted into sinan for simple testing of the project.  The code
> allows a simple way to start the application and test it when using the
> sinan shell command.  The code is below:
>
> %%% provide a way for start a sinan application when using the shell
> interface
> %%% (useful for development and testing)
> %%%
> %%% sinan --prefix=/path/to/erlang/ shell
> %%% > bootstrap:start(main_application_name).
> %%%
> -module(bootstrap).
> -export([start/1, stop/1]).
>
> start(Project) ->
>  % extra process information
>  application:start(sasl),
>
>  application:load(Project),
>  {ok, Dependencies} = application:get_key(Project, applications),
>  start_all(Dependencies, Project).
>
> stop(Project) ->
>  application:stop(Project).
>
> start_all([H | T], Project) ->
>  application:start(H),
>  start_all(T, Project);
> start_all([], Project) ->
>  application:start(Project).
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlware-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlware-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to