lib/chronos.js
function Chronos(opts) {
  if (!(this instanceof Chronos)) {
    return new Chronos(opts);
  }

  opts = opts || {};

  if (!opts.baseUrl) {
    opts.baseUrl = (opts.secure ? 'https:' : 'http:') + '//' +
      (opts.host || '127.0.0.1') + ':' +
      (opts.port || '4400') + '/scheduler';
  }
  opts.name = 'chronos';
  opts.type = 'json';

  papi.Client.call(this, opts);

  this.job = new Job(this);
  this.task = new Task(this);
}
function Chronos(opts) {
  if (!(this instanceof Chronos)) {
    return new Chronos(opts);
  }

  opts = opts || {};

  if (!opts.baseUrl) {
    opts.baseUrl = (opts.secure ? 'https:' : 'http:') + '//' +
      (opts.host || '127.0.0.1') + ':' +
      (opts.port || '4400') + '/scheduler';
  }
  opts.name = 'chronos';
  opts.type = 'json';

  papi.Client.call(this, opts);

  this.job = new Job(this);
  this.task = new Task(this);
}
function Chronos ( opts ) { if ( ! ( this instanceof Chronos ) ) { return new Chronos ( opts ) ; } opts = opts || { } ; if ( ! opts . baseUrl ) { opts . baseUrl = ( opts . secure ? 'https:' : 'http:' ) + '//' + ( opts . host || '127.0.0.1' ) + ':' + ( opts . port || '4400' ) + '/scheduler' ; } opts . name = 'chronos' ; opts . type = 'json' ; papi . Client . call ( this , opts ) ; this . job = new Job ( this ) ; this . task = new Task ( this ) ; }
Initialize a new `Chronos` client.

@param {Object} opts
Initialize a new Chronos client .