|
|
@ -1,14 +1,14 @@
|
|
|
|
const remoteExec = require('./remoteExec.js');
|
|
|
|
const remoteExec = require('./remoteExec.js');
|
|
|
|
|
|
|
|
|
|
|
|
// links services and module.exports
|
|
|
|
// links lubiland and module.exports
|
|
|
|
const services = module.exports = {};
|
|
|
|
const lubiland = module.exports = {};
|
|
|
|
|
|
|
|
|
|
|
|
services['infrastructure'] = {};
|
|
|
|
lubiland['infrastructure'] = {};
|
|
|
|
|
|
|
|
|
|
|
|
services['infrastructure']['rebuild'] = {};
|
|
|
|
lubiland['infrastructure']['rebuild'] = {};
|
|
|
|
services['infrastructure']['rebuild'].regex = /^([a-zA-Z0-9\-\_]*)$/;
|
|
|
|
lubiland['infrastructure']['rebuild'].regex = /^([a-zA-Z0-9\-\_]*)$/;
|
|
|
|
services['infrastructure']['rebuild'].usage = '<container>';
|
|
|
|
lubiland['infrastructure']['rebuild'].usage = '<container>';
|
|
|
|
services['infrastructure']['rebuild'].exec = (args) => {
|
|
|
|
lubiland['infrastructure']['rebuild'].exec = (args) => {
|
|
|
|
const container = args[1];
|
|
|
|
const container = args[1];
|
|
|
|
|
|
|
|
|
|
|
|
matrixClient.sendNotice(room.roomId, 'rebuilding container ' + container);
|
|
|
|
matrixClient.sendNotice(room.roomId, 'rebuilding container ' + container);
|
|
|
|