aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-07-16 10:26:44 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-07-16 10:26:44 -0700
commit4c4eb9d656b576a221126ac7a805e17c303fc8cb (patch)
treea7563c2dfe916844dc411e89ccf56a46bcaed4a0
parentc8848c38c99500ed686924689b96ae7d9e477922 (diff)
downloadprosody-4c4eb9d656b576a221126ac7a805e17c303fc8cb.tar.gz
prosody-4c4eb9d656b576a221126ac7a805e17c303fc8cb.zip
prosodyctl: Added the 'make' function
-rwxr-xr-xprosodyctl11
1 files changed, 11 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index baea969a..7f7b515e 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -129,6 +129,17 @@ function commands.write_rockspec(arg)
return 0
end
+-- 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
+
function commands.list(arg)
if not arg[1] or arg[1] == "--help" then
show_usage([[list]], [[Shows installed rocks]]);