diff options
author | Tim Watson <watson.timothy@gmail.com> | 2011-05-03 00:15:19 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-08-29 17:27:45 +0200 |
commit | 3b58935b8621a876afad2f649bbd00a12f7ab03f (patch) | |
tree | e7d90f6d318e8d52f9db40635c4bd22f40b1e9a5 /rebar.config.sample | |
parent | 7a1c88228be2129ad517d5b4eda9c4c9232115bf (diff) | |
download | rebar-3b58935b8621a876afad2f649bbd00a12f7ab03f.tar.gz |
Load plugins dynamically from source
This patch updates rebar_core to look for missing plugins (i.e. those
that aren't found on the code path at runtime) in a configurable
plugin directory, and dynamically compile and load them at runtime.
By default, the directory "plugins" is searched, although this can be
overriden by setting the plugin_dir in your rebar.config.
Diffstat (limited to 'rebar.config.sample')
-rw-r--r-- | rebar.config.sample | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rebar.config.sample b/rebar.config.sample index 2053b8b..513daf4 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -123,6 +123,19 @@ %% Subdirectories? {sub_dirs, ["dir1", "dir2"]}. +%% == Plugins == + +%% Plugins you wish to include. +%% These can include any module on the code path, including deps. +%% Alternatively, plugins can be placed as source files in the plugin_dir, in +%% which case they will be compiled and loaded dynamically at runtime. +{plugins, [plugin1, plugin2]}. + +%% Override the directory in which plugin sources can be found. +%% Defaults to ./plugins +{plugin_dir, "some_other_directory"}. + + %% == Pre/Post Command Hooks == {pre_hooks, [{clean, "./prepare_package_files.sh"}, |