summaryrefslogtreecommitdiff
path: root/src/rebar_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_resource.erl')
-rw-r--r--src/rebar_resource.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rebar_resource.erl b/src/rebar_resource.erl
index f0490f8..04b8d73 100644
--- a/src/rebar_resource.erl
+++ b/src/rebar_resource.erl
@@ -24,16 +24,20 @@
behaviour_info(callbacks) ->
[{lock, 2},
{download, 2},
- {needs_update,2}];
+ {needs_update,2},
+ {make_vsn, 1}];
behaviour_info(_) ->
undefined.
-else.
--callback lock(file:filename_all(), tuple()) -> rebar_resource:resource().
+-callback lock(file:filename_all(), tuple()) ->
+ rebar_resource:resource().
-callback download(file:filename_all(), tuple()) ->
{tarball, file:filename_all()} | {ok, any()} | {error, any()}.
-callback needs_update(file:filename_all(), tuple()) ->
{tarball, file:filename_all()} | {ok, any()} | {error, any()}.
+-callback make_vsn(file:filename_all()) ->
+ {plain, string()} | {error, string()}.
-endif.