aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-07-17 03:20:08 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-07-17 03:20:08 -0700
commitdba11eabd8f6dd8b60eada5e7d22b7ad0e344b19 (patch)
tree21e72d22424949eaed7f898a7c9d908c6510ad7e /prosodyctl
parentf4d9999bfa8a620508833160483acd0fb9b413bd (diff)
downloadprosody-dba11eabd8f6dd8b60eada5e7d22b7ad0e344b19.tar.gz
prosody-dba11eabd8f6dd8b60eada5e7d22b7ad0e344b19.zip
prosodyctl: Added the 'install' command
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl10
1 files changed, 10 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index dac0c1f9..f04c1d46 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -153,6 +153,16 @@ function commands.remove(arg)
return 0
end
+function commands.install(arg)
+ if arg[1] == "--help" then
+ show_usage([[make]], [[Installs a rockspec/rock from a specified server]]);
+ return 1
+ end
+ print("Installing module "..arg[1].." locally, from luarocks repo")
+ os.execute("luarocks --tree='./plugins' install "..arg[1])
+ return 0
+end
+
function commands.list(arg)
if not arg[1] or arg[1] == "--help" then
show_usage([[list]], [[Shows installed rocks]]);