Software /
code /
prosody
Diff
prosodyctl @ 10157:c6e166272d94
prosodyctl: Removed the make, admin_add and admin_remove commands
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Wed, 24 Jul 2019 04:42:45 -0700 |
parent | 10155:ebe39918d430 |
child | 10159:2eabac18e3dc |
line wrap: on
line diff
--- a/prosodyctl Wed Jul 24 04:31:39 2019 -0700 +++ b/prosodyctl Wed Jul 24 04:42:45 2019 -0700 @@ -85,17 +85,6 @@ local commands = {}; local command = table.remove(arg, 1); --- Command to install a rockspec with local sources --- The module is installed at the plugins folder -function commands.make(arg) - if arg[1] == "--help" then - show_usage([[make]], [[Installs a module with sources available locally]]); - return 1; - end - os.execute("cd downloaded_modules/"..arg[1].." && luarocks --tree='../../plugins' make "..arg[1].."-scm-1.rockspec") - return 0; -end - -- Command to remove a rockspec -- Receives as an argument the name of the plugin to be removed from the plugins folder function commands.remove(arg) @@ -163,16 +152,6 @@ end end -function commands.admin_add(arg) - prosodyctl.admin_operation("add ", arg) - return 0; -end - -function commands.admin_remove(arg) - prosodyctl.admin_operation("remove ", arg) - return 0; -end - function commands.enabled_plugins(arg) if arg[1] == "--help" then show_usage([[enabled_plugins]], [[Shows plugins currently enabled on prosody]]);