betajs/betajs-compile

View on GitHub
grunt/githook.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function (taskname, hookname, code) {
    this.grunt.loadNpmTasks('grunt-githooks');
    taskname = taskname || "githook";
    var obj = {};
    obj[hookname] = code;
    return this.registerTask(taskname, [
        this.addConfigTask("githooks", taskname, obj)
    ]);
};