diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-12-01 17:54:47 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-12-01 17:54:47 -0600 |
commit | 8e5c916cb6e93b484278e7463af3e7b07fe6db07 (patch) | |
tree | 4ed19adaa283c3dbd24e6b99f6531e8408b0059d /src/rebar_templater.erl | |
parent | fa71d55b0d41312968af0374c9adea27879ce04e (diff) |
move dir functions from utils to new module rebar_dir
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r-- | src/rebar_templater.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index f4cf3d2..7fe9241 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -143,7 +143,7 @@ default_variables() -> %% Load variable definitions from the 'Globals' file in the home template %% directory global_variables() -> - Home = rebar_utils:home_dir(), + Home = rebar_dir:home_dir(), GlobalFile = filename:join([Home, ?CONFIG_DIR, "templates", "globals"]), case file:consult(GlobalFile) of {error, enoent} -> []; @@ -270,7 +270,7 @@ find_escript_templates(Files) -> %% Fetch template indexes that sit on disk in the user's HOME find_disk_templates(State) -> OtherTemplates = find_other_templates(State), - Home = rebar_utils:home_dir(), + Home = rebar_dir:home_dir(), HomeFiles = rebar_utils:find_files(filename:join([Home, ?CONFIG_DIR, "templates"]), ?TEMPLATE_RE), [{file, F} || F <- OtherTemplates ++ HomeFiles]. |