diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-09-01 17:48:04 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-09-01 17:48:04 -0500 |
commit | d034f40c38753860c2da894f1966af5399f3efce (patch) | |
tree | 586cb586777bf613f84c5663d22ad4d346d39723 /src/rebar_state.erl | |
parent | b2c051452e336f9727b0f93ddb2f1abe970ed325 (diff) |
move opts functions to new module rebar_opts
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r-- | src/rebar_state.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl index 4a95a9a..2a5aa01 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -105,7 +105,7 @@ new(ParentState, Config, Deps, Dir) -> true = rebar_config:verify_config_format(Terms), LocalOpts = dict:from_list(Terms), - NewOpts = rebar_utils:merge_opts(LocalOpts, Opts), + NewOpts = rebar_opts:merge_opts(LocalOpts, Opts), ParentState#state_t{dir=Dir ,opts=NewOpts @@ -241,7 +241,7 @@ command_parsed_args(State, CmdArgs) -> State#state_t{command_parsed_args=CmdArgs}. add_to_profile(State, Profile, KVs) when is_atom(Profile), is_list(KVs) -> - Opts = rebar_utils:add_to_profile(opts(State), Profile, KVs), + Opts = rebar_opts:add_to_profile(opts(State), Profile, KVs), State#state_t{opts=Opts}. apply_profiles(State, Profile) when not is_list(Profile) -> @@ -268,7 +268,7 @@ apply_profiles(State=#state_t{default = Defaults, current_profiles=CurrentProfil case proplists:get_value(Profile, ConfigProfiles, []) of OptsList when is_list(OptsList) -> ProfileOpts = dict:from_list(OptsList), - rebar_utils:merge_opts(Profile, ProfileOpts, OptsAcc); + rebar_opts:merge_opts(Profile, ProfileOpts, OptsAcc); Other -> throw(?PRV_ERROR({profile_not_list, Profile, Other})) end |