You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
683 B
JavaScript
39 lines
683 B
JavaScript
"use strict";
|
|
|
|
const Promise = require("bluebird");
|
|
const api = require("./");
|
|
const loaders = require("./loaders");
|
|
|
|
return Promise.try(() => {
|
|
return api.query({
|
|
hardware: {
|
|
drives: {
|
|
model: true,
|
|
size: true,
|
|
interface: true,
|
|
smartHealth: true,
|
|
blockDevice: {
|
|
name: true,
|
|
path: true,
|
|
type: true,
|
|
children: {
|
|
name: true,
|
|
path: true,
|
|
type: true,
|
|
mounts: {
|
|
mountpoint: true,
|
|
filesystem: true,
|
|
totalSpace: true
|
|
}
|
|
}
|
|
}
|
|
// allBlockDevices
|
|
}
|
|
}
|
|
});
|
|
}).then((result) => {
|
|
console.dir(result, { depth: null });
|
|
}).catch((error) => {
|
|
console.dir(error, { depth: null });
|
|
});
|