Browse Source

add ssl_opts/1 to rebar_api so rebar3 hex plugin can use it

pull/624/head
Tristan Sloughter 10 years ago
parent
commit
63f588a677
2 changed files with 7 additions and 1 deletions
  1. +5
    -1
      src/rebar_api.erl
  2. +2
    -0
      src/rebar_pkg_resource.erl

+ 5
- 1
src/rebar_api.erl View File

@ -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).

+ 2
- 0
src/rebar_pkg_resource.erl View File

@ -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").

Loading…
Cancel
Save