aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-07-27 14:06:46 -0400
committerMatthew Wild <mwild1@gmail.com>2011-07-27 14:06:46 -0400
commit28a836f61cf864c764449bf8845a6c017d94e6dc (patch)
tree800cbbc2adb55fffee1c79ddb993bd0538324d4e /prosodyctl
parent7115de1d497ddc7bc7452311b54c5ff059b9be86 (diff)
downloadprosody-28a836f61cf864c764449bf8845a6c017d94e6dc.tar.gz
prosody-28a836f61cf864c764449bf8845a6c017d94e6dc.zip
prosodyctl: Add info about the presence of LuaRocks to 'about' command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl5
1 files changed, 5 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index a9858c44..37e95586 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -515,6 +515,11 @@ function commands.about(arg)
print(" "..path);
end
print("");
+ local luarocks_status = (pcall(require, "luarocks.loader") and "Installed ("..(luarocks.cfg.program_version or "2.x+")..")")
+ or (pcall(require, "luarocks.require") and "Installed (1.x+)")
+ or "Not installed";
+ print("LuaRocks: ", luarocks_status);
+ print("");
print("# Lua module versions");
local module_versions, longest_name = {}, 8;
for name, module in pairs(package.loaded) do