(host, arrdata)
| 269 | } |
| 270 | |
| 271 | function hostMetadata(host, arrdata){ |
| 272 | host = host.split(':')[1]; |
| 273 | var data = _.chain(arrdata) |
| 274 | .filter(function(item) { |
| 275 | return item.split(':')[0] === '***data' |
| 276 | }) |
| 277 | .map(function(item) { |
| 278 | var s = item.split(':')[1].split(','); |
| 279 | return {name: 'meta: ' + s[0] + ' = ' + s[1] , value: item} |
| 280 | }) |
| 281 | .value() |
| 282 | data.unshift(separate('yellow', 'Edit Metadata: ' + host)); |
| 283 | data.unshift({name: chalk.underline.green('Back'), value: 'back'}) |
| 284 | data.push(separate('yellow')); |
| 285 | return data |
| 286 | } |
| 287 | |
| 288 | function hostList(list){ |
| 289 | list = _.map(list, function(r) { |
nothing calls this directly
no test coverage detected