lib/githooks.js
function () {

    var template = this.loadTemplate(this.options.template);
    var bindingCode = template({
      hook: this.hookName,
      command: this.options.command,
      task: this.taskNames,
      preventExit: this.options.preventExit,
      args: this.options.args,
      gruntfileDirectory: process.cwd(),
      options: this.options
    });

    return this.options.startMarker + '\n' + bindingCode + '\n' + this.options.endMarker;
  }
function () {

    var template = this.loadTemplate(this.options.template);
    var bindingCode = template({
      hook: this.hookName,
      command: this.options.command,
      task: this.taskNames,
      preventExit: this.options.preventExit,
      args: this.options.args,
      gruntfileDirectory: process.cwd(),
      options: this.options
    });

    return this.options.startMarker + '\n' + bindingCode + '\n' + this.options.endMarker;
  }
function ( ) { var template = this . loadTemplate ( this . options . template ) ; var bindingCode = template ( { hook : this . hookName , command : this . options . command , task : this . taskNames , preventExit : this . options . preventExit , args : this . options . args , gruntfileDirectory : process . cwd ( ) , options : this . options } ) ; return this . options . startMarker + '\n' + bindingCode + '\n' + this . options . endMarker ; }
Creates the code that will run the grunt task from the hook
@method createBindingCode
@param task {String}
@param templatePath {Object}
Creates the code that will run the grunt task from the hook