diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-07-27 14:06:46 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-07-27 14:06:46 -0400 |
commit | 8d564b35827c279bf9ea8d2a20c62c3241c5820e (patch) | |
tree | 800cbbc2adb55fffee1c79ddb993bd0538324d4e | |
parent | d4b99e90cf89386aa2d1cf4679074790f9d7101c (diff) | |
download | prosody-8d564b35827c279bf9ea8d2a20c62c3241c5820e.tar.gz prosody-8d564b35827c279bf9ea8d2a20c62c3241c5820e.zip |
prosodyctl: Add info about the presence of LuaRocks to 'about' command
-rwxr-xr-x | prosodyctl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |