(arrData)
| 254 | } |
| 255 | |
| 256 | function deleteBackend(arrData){ |
| 257 | var data = _.chain(arrData) |
| 258 | .filter(function(item){ |
| 259 | return item.split(':')[0] !== '***data' |
| 260 | }) |
| 261 | .map(function(item){ |
| 262 | return {name: 'Ip/hostname:port ' + item, value: item} |
| 263 | }) |
| 264 | .value(); |
| 265 | data.unshift(separate('red','Backends')); |
| 266 | data.unshift({name: chalk.underline.green('Back'), value: 'back'}) |
| 267 | data.push(separate('red')); |
| 268 | return data |
| 269 | } |
| 270 | |
| 271 | function hostMetadata(host, arrdata){ |
| 272 | host = host.split(':')[1]; |
nothing calls this directly
no test coverage detected