src/tasks/default/check-environment.js
'use strict';
var CheckTask = require('./check'),
android = cb_require('kits/android'),
Info = cb_require('utils/info'),
utils = cli.utils;
class CheckEnvironmentTask extends CheckTask {
run(cloudbridge, argv) {
try {
console.log('\n');
cloudbridge.printCloudBridge();
console.log('\n');
var info = Info.gatherInfo();
Info.getCloudBridgeCliVersion(info);
Info.printInfo(info);
Info.checkRuntime();
return android.checker.check_all().then(function(requirements) {
console.log(JSON.stringify(requirements, null, 2));
});
//return Q();
}
catch (ex) {
utils.fail('An error occurred on check environment task:' + ex);
}
}
}
module.exports = CheckEnvironmentTask;