lib/server.js
function Server(root) {
  if (!(this instanceof Server)) return new Server(root);

  this.settings = defaults({}, Server.defaults);
  if (root) this.root(root);
  this.plugins = [];
  this.entries = {};

  var auth = netrc('api.github.com');
  if ('GH_TOKEN' in process.env) this.token(process.env.GH_TOKEN);
  else if (auth.password) this.token(auth.password);
}
function Server(root) {
  if (!(this instanceof Server)) return new Server(root);

  this.settings = defaults({}, Server.defaults);
  if (root) this.root(root);
  this.plugins = [];
  this.entries = {};

  var auth = netrc('api.github.com');
  if ('GH_TOKEN' in process.env) this.token(process.env.GH_TOKEN);
  else if (auth.password) this.token(auth.password);
}
function Server ( root ) { if ( ! ( this instanceof Server ) ) return new Server ( root ) ; this . settings = defaults ( { } , Server . defaults ) ; if ( root ) this . root ( root ) ; this . plugins = [ ] ; this . entries = { } ; var auth = netrc ( 'api.github.com' ) ; if ( 'GH_TOKEN' in process . env ) this . token ( process . env . GH_TOKEN ) ; else if ( auth . password ) this . token ( auth . password ) ; }
Represents a duo-serve instance

@constructor
@param {String} root  The project root
Represents a duo - serve instance