I'm using cuttlefish at version 0.1.0, and I have also tried using the head of the master branch and I get the same results from both.
so this:
%% HTTP Listeners
%% @doc listener.http.<name> is an IP address and TCP port that the Riak
%% HTTP interface will bind.
{mapping, "listener.http.$name", "riak_api.http", [
{default, {"127.0.0.1", 8098}},
{datatype, ip},
{include_default, "internal"}
]}.
{translation,
"riak_api.http",
fun(Conf) ->
HTTP = cuttlefish_variable:filter_by_prefix("listener.http", Conf),
[ IP || {_, IP} <- HTTP]
end
}.
So I'm trying to follow the instructions on https://github.com/basho/cuttlefish/wiki/Cuttlefish-for-Erlang-Developers#wiki-lists-and-proplists-and-names-oh-my, the only problem is that they don't work.
I'm using cuttlefish at version 0.1.0, and I have also tried using the head of the master branch and I get the same results from both.
so this:
and this:
generate this:
which is not quite what I was hoping that the translation and mapping would do.
Is this a feature that has been removed? or just implemented differently?