summaryrefslogtreecommitdiff
path: root/src/rebar_state.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-05-19 08:50:10 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-05-19 08:50:10 -0400
commitf9c9e0eacca3e9e42cf7dccbb178dd6c7b8f5c68 (patch)
tree36f5b7a5ff2f151542dca03232f5581bde7e107f /src/rebar_state.erl
parent76dafaffcd957e35a3844294b1cacf92bba02cc6 (diff)
parent3a201230fedb01ba258c291ed56450300caeac56 (diff)
Merge pull request #441 from tsloughter/global_plugins
install plugins from the global config to ~/.cache/plugins
Diffstat (limited to 'src/rebar_state.erl')
-rw-r--r--src/rebar_state.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_state.erl b/src/rebar_state.erl
index 7a6e60d..dd72fed 100644
--- a/src/rebar_state.erl
+++ b/src/rebar_state.erl
@@ -12,7 +12,7 @@
lock/1, lock/2,
- current_profiles/1,
+ current_profiles/1, current_profiles/2,
command_args/1, command_args/2,
command_parsed_args/1, command_parsed_args/2,
@@ -175,6 +175,9 @@ opts(State, Opts) ->
current_profiles(#state_t{current_profiles=Profiles}) ->
Profiles.
+current_profiles(State, Profiles) ->
+ State#state_t{current_profiles=Profiles}.
+
lock(#state_t{lock=Lock}) ->
Lock.