aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_state.erl
diff options
context:
space:
mode:
authorEric Merritt <[email protected]>2013-06-20 07:46:52 -0700
committerEric Merritt <[email protected]>2013-06-20 07:46:52 -0700
commit61a82df32d4ce7bf77ba9452cd956dd535c604ec (patch)
tree2da6aef78a7c9b0106073f65a51fe905380356d7 /src/rlx_state.erl
parentf0c5d882d5516d8a7c6a405721c6990317bee9ec (diff)
parent5ed7ea3172170fa05ac806250f695834d5d6ae58 (diff)
downloadrelx-61a82df32d4ce7bf77ba9452cd956dd535c604ec.tar.gz
relx-61a82df32d4ce7bf77ba9452cd956dd535c604ec.tar.bz2
relx-61a82df32d4ce7bf77ba9452cd956dd535c604ec.zip
Merge pull request #10 from lafka/lafka-vmargs-opt
Add support for {vm_args,_} argument in config
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r--src/rlx_state.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl
index 9b0811f..f5f363e 100644
--- a/src/rlx_state.erl
+++ b/src/rlx_state.erl
@@ -37,6 +37,8 @@
config_file/2,
providers/1,
providers/2,
+ vm_args/1,
+ vm_args/2,
sys_config/1,
sys_config/2,
root_dir/1,
@@ -78,6 +80,7 @@
providers = [] :: [rlx_provider:t()],
available_apps = [] :: [rlx_app_info:t()],
default_configured_release :: {rlx_release:name(), rlx_release:vsn()},
+ vm_args :: file:filename() | undefined,
sys_config :: file:filename() | undefined,
overrides :: [{AppName::atom(), Directory::file:filename()}],
skip_apps = [] :: [AppName::atom()],
@@ -183,6 +186,14 @@ config_file(State, ConfigFiles) ->
providers(#state_t{providers=Providers}) ->
Providers.
+-spec vm_args(t()) -> file:filename() | undefined.
+vm_args(#state_t{vm_args=VmArgs}) ->
+ VmArgs.
+
+-spec vm_args(t(), file:filename()) -> t().
+vm_args(State, VmArgs) ->
+ State#state_t{vm_args=VmArgs}.
+
-spec sys_config(t()) -> file:filename() | undefined.
sys_config(#state_t{sys_config=SysConfig}) ->
SysConfig.