diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-03 11:41:47 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-03 11:41:47 -0600 |
commit | a7bd7a3e1c9a31e6395a1a56e3815634f84e15ed (patch) | |
tree | cb0c806c6ad483f71c92ca87fc9572541244efec /src/rebar_resource.erl | |
parent | f873510025924d662b2adde880f951b8787ded1d (diff) |
add make_vsn to rebar_resource for replacing app vsns
Diffstat (limited to 'src/rebar_resource.erl')
-rw-r--r-- | src/rebar_resource.erl | 8 |
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. |