зеркало из https://github.com/docker/kitematic.git
Removed unused docker machine stats method
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
Родитель
32ae93dae7
Коммит
003d6719ec
|
@ -140,21 +140,6 @@ var DockerMachine = {
|
|||
}
|
||||
});
|
||||
},
|
||||
stats: function (machineName = this.name()) {
|
||||
this.state(machineName).then(state => {
|
||||
if (state === 'Stopped') {
|
||||
return Promise.resolve({state: state});
|
||||
}
|
||||
var memory = this.memory();
|
||||
var disk = this.disk();
|
||||
return Promise.all([memory, disk]).spread((memory, disk) => {
|
||||
return Promise.resolve({
|
||||
memory: memory,
|
||||
disk: disk
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
dockerTerminal: function (cmd, machineName = this.name()) {
|
||||
if(util.isWindows()) {
|
||||
cmd = cmd || '';
|
||||
|
|
Загрузка…
Ссылка в новой задаче