Created
July 5, 2015 08:21
-
-
Save videlalvaro/785d160e5af417c33ab6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include ../umbrella.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yes, this file is empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% this file goes in src/sample_plugin.app.src | |
{application, sample_plugin, | |
[{description, "Sample Plugin"}, | |
{vsn, "0.1.0"}, | |
{modules, []}, | |
{registered, []}, | |
{applications, [kernel, stdlib, rabbit]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% this file goes in src/sample_plugin.erl | |
-module(sample_plugin). | |
-export([init/1]). | |
-rabbit_boot_step( | |
{?MODULE, | |
[{description, "sample plugin"}, | |
{mfa, {?MODULE, init, | |
[my_arg]}}, | |
{requires, rabbit_registry}, | |
{enables, kernel_ready}]}). | |
init(Arg) -> | |
io:format("Arg: ~p priv_dir: ~p~n", [Arg, code:priv_dir(sample_plugin)]). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment