anchor.diff:  -module(boss_plugin).
   
   -export([boss/2,
  -		 pre_compile/2,
  -		 pre_eunit/2]).
  +     pre_compile/2,
  +     pre_eunit/2]).
   
   -define(BOSS_PLUGIN_CLIENT_VERSION, 1).
   -define(BOSS_CONFIG_FILE, "boss.config").
  
positive.code: %% @end
  %%--------------------------------------------------------------------
  pre_eunit(RebarConf, AppFile) ->
  	case is_boss_app(AppFile) orelse is_base_dir(RebarConf) of
  		true -> 
  			{ok, BossConf} = init(RebarConf, AppFile, "test_eunit"),
  			boss_rebar:run(?BOSS_PLUGIN_CLIENT_VERSION, test_eunit, RebarConf, BossConf, AppFile),
  			halt(0);
  		false -> ok
  	end.
  
  %% ===================================================================
  %% Internal functions
  
negative.code: %% @end
  %%--------------------------------------------------------------------
  boss(RebarConf, AppFile) ->
    case is_base_dir(RebarConf) of
      true -> 
              Command = rebar_config:get_global(RebarConf, c, "help"),
        {ok, BossConf} = init(RebarConf, AppFile, Command),
        case boss_rebar:run(?BOSS_PLUGIN_CLIENT_VERSION, Command, RebarConf, BossConf, AppFile) of
          {error, command_not_found} ->
            io:format("ERROR: boss command not found.~n"), 
            boss_rebar:help(),
            halt(1);
          {error, Reason} -> 
            io:format("ERROR: executing ~s task: ~s~n", [Command, Reason]), 
            halt(1);
          ok -> ok
        end;
      false -> ok
    end.
  
  %%--------------------------------------------------------------------
  %% @doc initializes the rebar boss connector plugin
  