Compile Diameter .dia files on Erlang Rebar3 projects
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Merge pull request #5 from RoadRunnr/master Jun 5, 2018
.gitignore Initial commit Jun 26, 2015
LICENSE Initial commit Jun 26, 2015
README.md
rebar.config Initial commit Jun 26, 2015
rebar.lock WIP Jun 29, 2015

README.md

rebar3_diameter_compiler

Compile diameter .dia files in rebar3 projects

Build

$ ./rebar3 compile

Use

Add the plugin to your rebar config from Github:

{plugins, [
    { rebar3_diameter_compiler, {git, "https://github.com/carlosedp/rebar3_diameter_compiler.git", {branch, "master"}}}
]}.

{provider_hooks, [
    {pre, [
        {compile, {diameter, compile}},
        {clean, {diameter, clean}}
    ]}
]}.

Or fetch the plugin using Hex.pm:

{plugins, [
    rebar3_diameter_compiler
]}.

{provider_hooks, [
    {pre, [
        {compile, {diameter, compile}},
        {clean, {diameter, clean}}
    ]}
]}.

The plugin will be ran on compile and clean commands or call your plugin directly in an existing application:

$ rebar3 diameter compile
===> Fetching rebar3_diameter_compiler
===> Compiling rebar3_diameter_compiler
===> Compiling diameter...

$ rebar3 diameter clean
===> Cleaning diameter compiled files...