Software / code / prosody
Comparison
prosodyctl @ 11134:3e3f22043552
util.prosodyctl: Move hardcoded luarocks server into prosodyctl
To be replaced with config option in future commit
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 05 Oct 2020 21:24:07 +0200 |
| parent | 11133:624eafed3343 |
| child | 11135:56490ffde93f |
comparison
equal
deleted
inserted
replaced
| 11133:624eafed3343 | 11134:3e3f22043552 |
|---|---|
| 76 function commands.install(arg) | 76 function commands.install(arg) |
| 77 if arg[1] == "--help" then | 77 if arg[1] == "--help" then |
| 78 show_usage([[install]], [[Installs a prosody/luarocks plugin]]); | 78 show_usage([[install]], [[Installs a prosody/luarocks plugin]]); |
| 79 return 1; | 79 return 1; |
| 80 end | 80 end |
| 81 call_luarocks("install", arg[1]); | 81 call_luarocks("install", arg[1], "http://localhost/"); |
| 82 end | 82 end |
| 83 | 83 |
| 84 function commands.remove(arg) | 84 function commands.remove(arg) |
| 85 if arg[1] == "--help" then | 85 if arg[1] == "--help" then |
| 86 show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]); | 86 show_usage([[remove]], [[Removes a module installed in the working directory's plugins folder]]); |