You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
709 B

  1. %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
  2. %% ex: ts=4 sw=4 et
  3. -module(rebar_resource).
  4. -export([]).
  5. -export_type([resource/0
  6. ,type/0
  7. ,location/0
  8. ,ref/0]).
  9. -type resource() :: {type(), location(), ref()}.
  10. -type type() :: atom().
  11. -type location() :: string().
  12. -type ref() :: any().
  13. -callback lock(file:filename_all(), tuple()) ->
  14. rebar_resource:resource().
  15. -callback download(file:filename_all(), tuple(), rebar_state:t()) ->
  16. {tarball, file:filename_all()} | {ok, any()} | {error, any()}.
  17. -callback needs_update(file:filename_all(), tuple()) ->
  18. boolean().
  19. -callback make_vsn(file:filename_all()) ->
  20. {plain, string()} | {error, string()}.