summaryrefslogtreecommitdiff
path: root/src/rebar_state.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r--src/rebar_state.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index 8170b8d..6ca3baa 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -3,7 +3,7 @@
-export([new/0, new/1, new/2, new/3,
get/2, get/3, set/3,
- opts/1,
+ opts/1, opts/2,
default/1, default/2,
escript_path/1, escript_path/2,
@@ -37,7 +37,6 @@
-record(state_t, {dir :: file:name(),
opts = dict:new() :: rebar_dict(),
default = dict:new() :: rebar_dict(),
-
escript_path :: undefined | file:filename_all(),
lock = [],
@@ -129,6 +128,9 @@ default(State, Opts) ->
opts(#state_t{opts=Opts}) ->
Opts.
+opts(State, Opts) ->
+ State#state_t{opts=Opts}.
+
current_profiles(#state_t{current_profiles=Profiles}) ->
Profiles.