From 4a25a4d9d5f968fe2445707e8077a6efda596192 Mon Sep 17 00:00:00 2001 From: CarlosEDP Date: Thu, 2 Jul 2015 11:59:39 -0300 Subject: Renamed functions. --- bootstrap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index 4fed22a..71c44da 100755 --- a/bootstrap +++ b/bootstrap @@ -94,7 +94,7 @@ request(Url) -> Error end. -get_http_var() -> +get_rebar_config() -> {ok, [[Home]]} = init:get_argument(home), ConfDir = filename:join(Home, ".config/rebar3"), case file:consult(filename:join(ConfDir, "rebar.config")) of @@ -104,12 +104,12 @@ get_http_var() -> [] end. -get_http(Scheme) -> - proplists:get_value(Scheme, get_http_var(), []). +get_http_vars(Scheme) -> + proplists:get_value(Scheme, get_rebar_config(), []). set_httpc_options() -> - set_httpc_options(https_proxy, get_http(https_proxy)), - set_httpc_options(proxy, get_http(http_proxy)). + set_httpc_options(https_proxy, get_http_vars(https_proxy)), + set_httpc_options(proxy, get_http_vars(http_proxy)). set_httpc_options(_, []) -> ok; -- cgit v1.1