Commits

Kevin Smith  committed 76ed625

Code formatting clean up

  • Participants
  • Parent commits 1bc463d

Comments (0)

Files changed (6)

File apps/luke/src/luke.erl

 -define(DEFAULT_TIMEOUT, 60000).
 
 %% Application callbacks
--export([start/0, start/2, stop/1]).
+-export([start/0,
+         start/2,
+         stop/1]).
 
 %% Public API
--export([new_flow/2, new_flow/3, new_flow/4, new_flow/5]).
+-export([new_flow/2,
+         new_flow/3,
+         new_flow/4,
+         new_flow/5]).
 
 new_flow(FlowId, FlowDesc) ->
     new_flow(self(), FlowId, FlowDesc, ?DEFAULT_TIMEOUT).

File apps/luke/src/luke_flow.erl

 -behaviour(gen_fsm).
 
 %% API
--export([start_link/4, add_inputs/2, finish_inputs/1, collect_output/2]).
+-export([start_link/4,
+         add_inputs/2,
+         finish_inputs/1,
+         collect_output/2]).
 
 %% FSM states
--export([get_phases/1, executing/2, executing/3]).
+-export([get_phases/1,
+         executing/2,
+         executing/3]).
 
 %% gen_fsm callbacks
--export([init/1, handle_event/3,
-         handle_sync_event/4, handle_info/3, terminate/3, code_change/4]).
+-export([init/1,
+         handle_event/3,
+         handle_sync_event/4,
+         handle_info/3,
+         terminate/3,
+         code_change/4]).
 
--record(state, {flow_id, fsms, client, timeout, results=[]}).
+-record(state, {flow_id,
+                fsms,
+                client,
+                timeout,
+                results=[]}).
 
 %% @doc Add inputs to the flow. Inputs will be sent to the
 %%      first phase

File apps/luke/src/luke_flow_sup.erl

 -behaviour(supervisor).
 
 %% API
--export([start_link/0, new_flow/4, new_flow/5]).
+-export([start_link/0,
+         new_flow/4,
+         new_flow/5]).
 
 %% Supervisor callbacks
 -export([init/1]).

File apps/luke/src/luke_phase.erl

 -behaviour(gen_fsm).
 
 %% API
--export([start_link/6, complete/0, partners/3]).
+-export([start_link/6,
+         complete/0,
+         partners/3]).
 
 %% Behaviour
 -export([behaviour_info/1]).
 -export([executing/2]).
 
 %% gen_fsm callbacks
--export([init/1, handle_event/3,
-         handle_sync_event/4, handle_info/3, terminate/3, code_change/4]).
+-export([init/1,
+         handle_event/3,
+         handle_sync_event/4,
+         handle_info/3,
+         terminate/3,
+         code_change/4]).
 
--record(state, {mod, modstate, converge=false, accumulate=false, lead_partner, partners, next_phases,
-                done_count=1, flow, timeout, cb_timeout=false}).
+-record(state, {mod,
+                modstate,
+                converge=false,
+                accumulate=false,
+                lead_partner,
+                partners,
+                next_phases,
+                done_count=1,
+                flow,
+                timeout,
+                cb_timeout=false}).
 
 behaviour_info(callbacks) ->
   [{init, 1},

File apps/luke/src/luke_phase_sup.erl

 -behaviour(supervisor).
 
 %% API
--export([start_link/0, new_phase/6]).
+-export([start_link/0,
+         new_phase/6]).
 
 %% Supervisor callbacks
 -export([init/1]).

File apps/luke/src/luke_phases.erl

 %%      phase behavior.
 -module(luke_phases).
 
--export([send_inputs/2, send_inputs_done/1, send_flow_complete/1]).
+-export([send_inputs/2,
+         send_inputs_done/1,
+         send_flow_complete/1]).
 -export([send_flow_results/2]).
 
 %% @doc Sends inputs to a phase process