diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-07-18 18:04:54 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-07-18 18:04:54 -0500 |
commit | 63f588a6771425eb33a0c555b460b0eddd1ae225 (patch) | |
tree | faaa6dfd01c198b720267c27eb85e9c9ddec71bf | |
parent | 3485f08a03fa8ff70c94decbd445f7b64982873c (diff) |
add ssl_opts/1 to rebar_api so rebar3 hex plugin can use it
-rw-r--r-- | src/rebar_api.erl | 6 | ||||
-rw-r--r-- | src/rebar_pkg_resource.erl | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_api.erl b/src/rebar_api.erl index 45083df..ec9f85e 100644 --- a/src/rebar_api.erl +++ b/src/rebar_api.erl @@ -11,7 +11,8 @@ wordsize/0, add_deps_to_path/1, restore_code_path/1, - processing_base_dir/1]). + processing_base_dir/1, + ssl_opts/1]). -export_type([rebar_dict/0, rebar_digraph/0]). @@ -63,3 +64,6 @@ restore_code_path(State) -> processing_base_dir(State) -> rebar_dir:processing_base_dir(State). + +ssl_opts(Url) -> + rebar_pkg_resource:ssl_opts(Url). diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl index 62208a6..50533a5 100644 --- a/src/rebar_pkg_resource.erl +++ b/src/rebar_pkg_resource.erl @@ -9,6 +9,8 @@ ,needs_update/2 ,make_vsn/1]). +-export([ssl_opts/1]). + -include("rebar.hrl"). -include_lib("public_key/include/OTP-PUB-KEY.hrl"). |