lib/coffeescript/cake.js
function(name, description, action) {
      if (!action) {
        [action, description] = [description, action];
      }
      return tasks[name] = {name, description, action};
    }
function(name, description, action) {
      if (!action) {
        [action, description] = [description, action];
      }
      return tasks[name] = {name, description, action};
    }
function ( name , description , action ) { if ( ! action ) { [ action , description ] = [ description , action ] ; } return tasks [ name ] = { name , description , action } ; }
Define a Cake task with a short name, an optional sentence description, and the function to run as the action itself.
Define a Cake task with a short name an optional sentence description and the function to run as the action itself .