summaryrefslogtreecommitdiff
path: root/src/rebar_resource.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-11-01 13:17:52 -0500
committerTristan Sloughter <t@crashfast.com>2014-11-01 13:17:52 -0500
commit35d1afd2f69aa604ec1a44ac511092dc5a40e12c (patch)
tree25e261845a06234fd59db8df0e262872182f0422 /src/rebar_resource.erl
parent6c1201f1ace6870adb5547a8e4f2fb1f22106cc2 (diff)
verify checked out dep is the same as specified in the config and update if not
Diffstat (limited to 'src/rebar_resource.erl')
-rw-r--r--src/rebar_resource.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_resource.erl b/src/rebar_resource.erl
index 17db13b..f0490f8 100644
--- a/src/rebar_resource.erl
+++ b/src/rebar_resource.erl
@@ -23,7 +23,8 @@
-spec behaviour_info(atom()) -> [{atom(), arity()}] | undefined.
behaviour_info(callbacks) ->
[{lock, 2},
- {download, 2}];
+ {download, 2},
+ {needs_update,2}];
behaviour_info(_) ->
undefined.
@@ -32,5 +33,7 @@ behaviour_info(_) ->
-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()}.
-endif.