lib/git-beat.js
function GitBeat(options) {
  var self = this;
  var url;

  options = options || {};

  if (typeof options === 'string') {
    url = options;
    options = {};
  }


  this.cwd = path.resolve(options.cwd || '');
  this.logger = options.logger || noop;

  url = url || options.url;
  this.isCloned = false;
  if (url) {
    this.logger('initial clone', url, !!options.done);
    this.clone(url, options.done || noop);
  }
}
function GitBeat(options) {
  var self = this;
  var url;

  options = options || {};

  if (typeof options === 'string') {
    url = options;
    options = {};
  }


  this.cwd = path.resolve(options.cwd || '');
  this.logger = options.logger || noop;

  url = url || options.url;
  this.isCloned = false;
  if (url) {
    this.logger('initial clone', url, !!options.done);
    this.clone(url, options.done || noop);
  }
}
function GitBeat ( options ) { var self = this ; var url ; options = options || { } ; if ( typeof options === 'string' ) { url = options ; options = { } ; } this . cwd = path . resolve ( options . cwd || '' ) ; this . logger = options . logger || noop ; url = url || options . url ; this . isCloned = false ; if ( url ) { this . logger ( 'initial clone' , url , ! ! options . done ) ; this . clone ( url , options . done || noop ) ; } }
GitBeat is aimed to take the pulse of Git repositories.
@param {Object|String} options     is either an object or the URL of a repository
@param {String} [options.cwd]      to set the working directory path
@param {Function} [options.logger] a function to log
GitBeat is aimed to take the pulse of Git repositories .