From cb386d15aa3c2e9cc55d70735a204a5cc90d4158 Mon Sep 17 00:00:00 2001 From: Praneeth Bodduluri Date: Wed, 10 Aug 2016 18:42:34 +0530 Subject: [PATCH] Add OS version to devices,device commands and Supervisor Version to devices command --- build/actions/device.js | 4 ++-- lib/actions/device.coffee | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build/actions/device.js b/build/actions/device.js index d096b414..e431eaa0 100644 --- a/build/actions/device.js +++ b/build/actions/device.js @@ -43,7 +43,7 @@ limitations under the License. device.uuid = device.uuid.slice(0, 7); return device; }); - return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online'])); + return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online', 'supervisor_version', 'os_version'])); }).nodeify(done); } }; @@ -61,7 +61,7 @@ limitations under the License. return resin.models.device.get(params.uuid).then(function(device) { return resin.models.device.getStatus(device).then(function(status) { device.status = status; - return console.log(visuals.table.vertical(device, ["$" + device.name + "$", 'id', 'device_type', 'status', 'is_online', 'ip_address', 'application_name', 'last_seen', 'uuid', 'commit', 'supervisor_version', 'is_web_accessible', 'note'])); + return console.log(visuals.table.vertical(device, ["$" + device.name + "$", 'id', 'device_type', 'status', 'is_online', 'ip_address', 'application_name', 'last_seen', 'uuid', 'commit', 'supervisor_version', 'is_web_accessible', 'note', 'os_version'])); }); }).nodeify(done); } diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index 1b91261e..509e2c9f 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -58,6 +58,8 @@ exports.list = 'application_name' 'status' 'is_online' + 'supervisor_version' + 'os_version' ] .nodeify(done) @@ -96,6 +98,7 @@ exports.info = 'supervisor_version' 'is_web_accessible' 'note' + 'os_version' ] .nodeify(done)