aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-08-16 15:01:57 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-08-16 15:01:57 -0700
commit2e5522674ec344d9f240f656ed907ad7801185ee (patch)
treecea5cf042e2a75e79306be9194599eb080155c34 /util/prosodyctl.lua
parenta81aea73315e5ace1ddd0e3158947146e2414a10 (diff)
downloadprosody-2e5522674ec344d9f240f656ed907ad7801185ee.tar.gz
prosody-2e5522674ec344d9f240f656ed907ad7801185ee.zip
util/prosodyctl: Removed the check_flags and execute_command function
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua25
1 files changed, 0 insertions, 25 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua
index c6abc02f..316831a9 100644
--- a/util/prosodyctl.lua
+++ b/util/prosodyctl.lua
@@ -296,16 +296,6 @@ local function get_path_custom_plugins(plugin_paths)
end
end
-local function check_flags(arg)
- local flag = "--tree=";
- -- There might not be any argument when the list command is calling this function
- if arg[1] and arg[1]:sub(1, #flag) == flag then
- local dir = arg[1]:match("=(.+)$")
- return true, arg[#arg-1], dir;
- end
- return false, arg[#arg-1];
-end
-
local function call_luarocks(operation, mod, dir)
if operation == "install" then
show_message("Installing %s at %s", mod, dir);
@@ -322,19 +312,6 @@ local function call_luarocks(operation, mod, dir)
end
end
-local function execute_command(arg)
- local operation = arg[#arg]
- local tree, mod, dir = check_flags(arg);
- if tree then
- call_luarocks(operation, mod, dir);
- return 0;
- else
- dir = get_path_custom_plugins(prosody.paths.plugins);
- call_luarocks(operation, mod, dir);
- return 0;
- end
-end
-
return {
show_message = show_message;
show_warning = show_message;
@@ -356,7 +333,5 @@ return {
stop = stop;
reload = reload;
get_path_custom_plugins = get_path_custom_plugins;
- check_flags = check_flags;
call_luarocks = call_luarocks;
- execute_command = execute_command;
};