lib/cli/job.js
function read(cb) {
  return function (name, args) {
    function resultCb(result) {
      var status = util.statusByColor(result.color);
      var color  = util.colorByStatus(status, result.color);
      console.log('%s | %s', name, text.__(status)[color]);
      result.healthReport.forEach(function (report) {
        console.log(' - %s', report.description);
      });
    }
    function jenkinsCb(jenkins) {
      jenkins.readJob(name, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function read(cb) {
  return function (name, args) {
    function resultCb(result) {
      var status = util.statusByColor(result.color);
      var color  = util.colorByStatus(status, result.color);
      console.log('%s | %s', name, text.__(status)[color]);
      result.healthReport.forEach(function (report) {
        console.log(' - %s', report.description);
      });
    }
    function jenkinsCb(jenkins) {
      jenkins.readJob(name, cli.exitCb(null, resultCb));
    }
    cb(args, jenkinsCb);
  };
}
function read ( cb ) { return function ( name , args ) { function resultCb ( result ) { var status = util . statusByColor ( result . color ) ; var color = util . colorByStatus ( status , result . color ) ; console . log ( '%s | %s' , name , text . __ ( status ) [ color ] ) ; result . healthReport . forEach ( function ( report ) { console . log ( ' - %s' , report . description ) ; } ) ; } function jenkinsCb ( jenkins ) { jenkins . readJob ( name , cli . exitCb ( null , resultCb ) ) ; } cb ( args , jenkinsCb ) ; } ; }
Get a handler that calls Jenkins API to retrieve information about a job.
Job status and health reports will be logged when there's no error.

@param {Function} cb: callback for argument handling
@return Jenkins API handler function
Get a handler that calls Jenkins API to retrieve information about a job . Job status and health reports will be logged when there s no error .