runner
This commit is contained in:
7
lxc.js
7
lxc.js
@ -22,13 +22,13 @@ var Container = function(config){
|
|||||||
Container.prototype.autoShutDown = function(time) {
|
Container.prototype.autoShutDown = function(time) {
|
||||||
time = time || 600000;
|
time = time || 600000;
|
||||||
|
|
||||||
this.__shutDownTimeout = setTimeout(function(){}, this.autoShutDown):
|
// this.__shutDownTimeout = setTimeout(function(){}, this.autoShutDown):
|
||||||
};
|
};
|
||||||
|
|
||||||
var lxcORM = function(){
|
var lxcORM = function(){
|
||||||
var orm = {}
|
var orm = {}
|
||||||
lxc.list(function(data){
|
lxc.list(function(data){
|
||||||
for(var idx = data.length; idx--){
|
for(var idx = data.length; idx--;){
|
||||||
orm[data[idx].name] = new Container(data);
|
orm[data[idx].name] = new Container(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -133,3 +133,6 @@ var lxc = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
module.exports = lxc;
|
module.exports = lxc;
|
||||||
|
|
||||||
|
var orm = lxcORM()
|
||||||
|
setTimeout(function(){})
|
||||||
|
Reference in New Issue
Block a user