summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 01:08:21 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2011-09-14 01:08:21 +0100
commit9332d2b689eb8fcbbfc033f9fdb8222dc235bb34 (patch)
tree0fdcde982948fd81ea7a0e6a9422e5f0be68c8a3 /src
parenta268c0aa6db9504ea16a03304d2c4998dc8b7d26 (diff)
downloadrabbitmq-server-git-9332d2b689eb8fcbbfc033f9fdb8222dc235bb34.tar.gz
more verbose listing
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_plugin.erl18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/rabbit_plugin.erl b/src/rabbit_plugin.erl
index 74139f0884..e63e6f55d9 100644
--- a/src/rabbit_plugin.erl
+++ b/src/rabbit_plugin.erl
@@ -186,15 +186,23 @@ format_plugins(PluginsDir, PluginsDistDir) ->
|| Plugin <- usort_plugins(EnabledPlugins ++ AvailablePlugins)],
ok.
-format_plugin(#plugin{name = Name, version = Version, description = Description},
+format_plugin(#plugin{name = Name, version = Version, description = Description,
+ dependencies = Dependencies},
EnabledExplicitly, EnabledImplicitly) ->
Glyph = case {lists:member(Name, EnabledExplicitly),
lists:member(Name, EnabledImplicitly)} of
- {true, false} -> "E";
- {false, true} -> "e";
- _ -> "N"
+ {true, false} -> "[E]";
+ {false, true} -> "[e]";
+ _ -> " * "
end,
- io:format("[~s] ~w-~s: ~s~n", [Glyph, Name, Version, Description]).
+ io:format("~s ~w~n", [Glyph, Name]),
+ io:format(" Version: \t~s~n", [Version]),
+ case Dependencies of
+ [] -> ok;
+ _ -> io:format(" Dependencies:\t~p~n", [Dependencies])
+ end,
+ io:format(" Description:\t~s~n", [Description]),
+ io:format("~n").
usort_plugins(Plugins) ->
lists:usort(fun plugins_cmp/2, Plugins).