diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-12-21 16:23:44 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-12-21 16:23:44 -0600 |
commit | d7def6e9ffbbe21ce8a3b4f9e56d344ad2e417a9 (patch) | |
tree | 057af3495ed7436b487928c785cffd9b69f9defd /src/rebar_app_info.erl | |
parent | fe470e534ccc22d153ca9005d7dd4c1f85447140 (diff) | |
parent | 44a30ca52f3c74d19007fd0433f6192fa4ccca79 (diff) |
Merge pull request #987 from ferd/plugin-templates
Plugin templates
Diffstat (limited to 'src/rebar_app_info.erl')
-rw-r--r-- | src/rebar_app_info.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar_app_info.erl b/src/rebar_app_info.erl index 95b4624..9fee4e0 100644 --- a/src/rebar_app_info.erl +++ b/src/rebar_app_info.erl @@ -23,6 +23,7 @@ original_vsn/1, original_vsn/2, ebin_dir/1, + priv_dir/1, applications/1, applications/2, profiles/1, @@ -361,6 +362,10 @@ out_dir(AppInfo=#app_info_t{}, OutDir) -> ebin_dir(#app_info_t{out_dir=OutDir}) -> ec_cnv:to_list(filename:join(OutDir, "ebin")). +-spec priv_dir(t()) -> file:name(). +priv_dir(#app_info_t{out_dir=OutDir}) -> + ec_cnv:to_list(filename:join(OutDir, "priv")). + -spec resource_type(t(), pkg | src) -> t(). resource_type(AppInfo=#app_info_t{}, Type) -> AppInfo#app_info_t{resource_type=Type}. |