(name, cb)
| 1638 | } |
| 1639 | |
| 1640 | getProcessIdByName (name, cb) { |
| 1641 | var that = this; |
| 1642 | |
| 1643 | this.Client.getProcessIdByName(name, function(err, id) { |
| 1644 | if (err) { |
| 1645 | Common.printError(err); |
| 1646 | return cb ? cb(Common.retErr(err)) : that.exitCli(conf.ERROR_EXIT); |
| 1647 | } |
| 1648 | console.log(id); |
| 1649 | return cb ? cb(null, id) : that.exitCli(conf.SUCCESS_EXIT); |
| 1650 | }); |
| 1651 | } |
| 1652 | |
| 1653 | /** |
| 1654 | * Description |
no test coverage detected